Spaces:
Running
Running
Dashboard data 2026-11-15T11:37+00:00
Browse filesFiles changed (4)
- app.js+39-7
- data/geo.jsonAdded
- data/meta.json+1-1
- index.html+4
687 unmodified lines68868969069169269369469569669769816 unmodified lines715716717718719720721722723724725726727728687 unmodified lines// --- Input features ----------------------------------------------------------------------async function renderInputs(root) {const cat = await json("catalog.json");const groups = new Set(cat.flatMap(r => (r.group ? r.group.split(", ") : [])));const cats = [...new Set(cat.map(r => r.category))].map(c => ({ c, n: cat.filter(r => r.category === c).length, used: cat.filter(r => r.category === c && r.used).length })).sort((a, b) => b.used - a.used || b.n - a.n);root.innerHTML = `<div class="head"><div><h1>Input features</h1><p class="lede">Every series we could feed a model. ESIOS serves <b>indicators</b> (time series), <b>offer indicators</b> (bid curves) and <b>archives</b> (bulk files). Calendar columns are computed. <b>Used</b> marks series in a feature group of <span class="mono">configs/groups.toml</span>; availability <b>future</b> = known for the target day before the gate, <b>past</b> = only known up to the forecast origin. Categories come from keyword rules on the English name, so a few rows may sit in the wrong bucket.</p></div></div><div class="kpis">${kpi("Series", cat.length.toLocaleString("en-GB"))}${kpi("Used", String(cat.filter(r => r.used).length))}${kpi("Feature groups", String(groups.size))}</div><div class="card"><div class="card-head"><div><h2>Catalog</h2><p class="sub" id="in-n"></p></div><div class="controls"><select id="in-c" aria-label="Category"><option value="">All categories</option>${cats.map(c => `<option value="${esc(c.c)}">${esc(c.c)} (${c.used}/${c.n})</option>`).join("")}</select>16 unmodified linesdraw();}// Outside Spain: the market's feature columns from configs/groups.toml (build.py writes them).async function renderFeatures(root) {const m = mk(), rows = (await json("features.json"))[m.id];root.innerHTML = `<div class="head"><div><h1>Input features</h1><p class="lede">The columns the ${esc(m.name)} models see, one line each in <span class="mono">configs/groups.toml</span>. Availability <b>future</b> = known for the target day before the gate, <b>past</b> = only known up to the forecast origin.</p></div></div><div class="card"><div class="card-head"><div><h2>Feature columns</h2><p class="sub">${rows.length} columns</p></div></div><div class="tablewrap"><table><thead><tr><th>Group</th><th>Column</th><th>Source</th><th>Availability</th><th>Description</th></tr></thead><tbody>${rows.map(r =>`<tr><td class="mono">${esc(r.group)}</td><td class="mono">${esc(r.column)}</td><td class="mono">${esc(r.source)}</td><td>${esc(r.availability)}</td><td class="desc">${esc(r.description)}</td></tr>`).join("")}</tbody></table></div></div>`;}// --- Targets (Predico resources) --------------------------------------------------------687 unmodified lines68868969069169269369469569669769869916 unmodified lines716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760687 unmodified lines// --- Input features ----------------------------------------------------------------------async function renderInputs(root) {const cat = await json("catalog.json"), used = await liveFeatures(mk());const groups = new Set(cat.flatMap(r => (r.group ? r.group.split(", ") : [])));const cats = [...new Set(cat.map(r => r.category))].map(c => ({ c, n: cat.filter(r => r.category === c).length, used: cat.filter(r => r.category === c && r.used).length })).sort((a, b) => b.used - a.used || b.n - a.n);root.innerHTML = `<div class="head"><div><h1>Input features</h1><p class="lede">Every series we could feed a model. ESIOS serves <b>indicators</b> (time series), <b>offer indicators</b> (bid curves) and <b>archives</b> (bulk files). Calendar columns are computed. <b>Used</b> marks series in a feature group of <span class="mono">configs/groups.toml</span>; availability <b>future</b> = known for the target day before the gate, <b>past</b> = only known up to the forecast origin. Categories come from keyword rules on the English name, so a few rows may sit in the wrong bucket.</p></div></div>${used.size ? `<div class="card"><div class="card-head"><div><h2>Used by the live model</h2><p class="sub">The ${used.size} input columns of the latest live run (besides the target's own history).</p></div></div><div class="chips">${[...used].sort().map(f => `<span class="chip static mono">${esc(f)}</span>`).join("")}</div></div>` : ""}<div class="kpis">${kpi("Series", cat.length.toLocaleString("en-GB"))}${kpi("Used", String(cat.filter(r => r.used).length))}${kpi("Feature groups", String(groups.size))}</div><div class="card"><div class="card-head"><div><h2>Catalog</h2><p class="sub" id="in-n"></p></div><div class="controls"><select id="in-c" aria-label="Category"><option value="">All categories</option>${cats.map(c => `<option value="${esc(c.c)}">${esc(c.c)} (${c.used}/${c.n})</option>`).join("")}</select>16 unmodified linesdraw();}// Feature columns the latest live run of each of the market's targets used (live.json).async function liveFeatures(m) {const [live, meta] = await Promise.all([json("live.json").catch(() => null), json("meta.json")]), out = new Set();for (const t of shortsOf(m, meta)) for (const f of live?.targets?.[t]?.features ?? []) out.add(f);return out;}// Outside Spain: the market's feature columns from configs/groups.toml (build.py writes them),// and a map of the weather points with their weights where the market reads Open-Meteo.async function renderFeatures(root) {const m = mk(), rows = (await json("features.json"))[m.id], used = await liveFeatures(m);const geo = (await json("geo.json").catch(() => ({})))[m.id];root.innerHTML = `<div class="head"><div><h1>Input features</h1><p class="lede">The columns the ${esc(m.name)} models see, one line each in <span class="mono">configs/groups.toml</span>. Availability <b>future</b> = known for the target day before the gate, <b>past</b> = only known up to the forecast origin. <b>Live</b> marks the columns the latest live run used.</p></div></div>${geo ? `<div class="card"><div class="card-head"><div><h2>Weather sampling</h2><p class="sub">${geo.sets.map(s => `${s.points.length} points (${s.weighted ? "weighted by PV capacity; dot size = weight" : "plain mean"}): ${s.runs.join(" and ")} run of D-1`).join(" · ")}. Outline: ${esc(geo.label)}.</p></div></div><div class="map" id="ft-map" role="img" aria-label="Map of the weather points"></div><p class="sub">Boundaries: ${esc(geo.credit)}. Map: © OpenStreetMap contributors.</p></div>` : ""}<div class="card"><div class="card-head"><div><h2>Feature columns</h2><p class="sub">${rows.length} columns · ${rows.filter(r => used.has(r.column)).length} in the latest live run</p></div></div><div class="tablewrap"><table><thead><tr><th>Live</th><th>Group</th><th>Column</th><th>Source</th><th>Availability</th><th>Description</th></tr></thead><tbody>${rows.map(r =>`<tr><td>${used.has(r.column) ? '<span class="pill">live</span>' : ""}</td><td class="mono">${esc(r.group)}</td><td class="mono">${esc(r.column)}</td><td class="mono">${esc(r.source)}</td><td>${esc(r.availability)}</td><td class="desc">${esc(r.description)}</td></tr>`).join("")}</tbody></table></div></div>`;if (geo && window.L) drawMap(root.querySelector("#ft-map"), geo);}function drawMap(el, geo) {const map = L.map(el, { scrollWheelZoom: false });L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 12, attribution: "© OpenStreetMap" }).addTo(map);const regions = L.geoJSON(geo.regions, {style: { color: css("--accent-ink"), weight: 1.5, fillColor: css("--accent"), fillOpacity: 0.12 },onEachFeature: (f, layer) => layer.bindTooltip(esc(f.properties.name)),}).addTo(map);const bounds = regions.getBounds();for (const s of geo.sets) for (const [lat, lon, w] of s.points) {const r = s.weighted ? 5 + Math.sqrt(w) * 30 : 7;L.circleMarker([lat, lon], { radius: r, color: css("--surface"), weight: 2, fillColor: css("--tso"), fillOpacity: 0.9 }).bindTooltip(`${lat.toFixed(2)}, ${lon.toFixed(2)}${s.weighted ? ` · weight ${(w * 100).toFixed(1)}%` : ""}<br>${s.runs.join(", ")}`).addTo(map);bounds.extend([lat, lon]);}map.fitBounds(bounds.pad(0.05));}// --- Targets (Predico resources) --------------------------------------------------------
1{"start":1761951600,"n":35040,"configs":[{"name":"chronos2_cov_ctx90","type":"foundation model","context":90},{"name":"chronos2_uni_ctx30","type":"foundation model","context":30},{"name":"chronos2_uni_ctx90","type":"foundation model","context":90},{"name":"ciproto_cov_ctx90","type":"foundation model","context":90},{"name":"elia_dayahead11h","type":"TSO forecast","context":null},{"name":"entsoe_a69","type":"TSO forecast","context":null},{"name":"slot_climatology_28d","type":"baseline","context":28},{"name":"t0gamma_cov_ctx90","type":"foundation model","context":90},{"name":"t0gamma_cov_noecmwf_ctx90","type":"foundation model","context":90},{"name":"t0gamma_cov_noicond2_ctx90","type":"foundation model","context":90},{"name":"t0gamma_uni_ctx30","type":"foundation model","context":30},{"name":"t0gamma_uni_ctx326","type":"foundation model","context":326},{"name":"t0gamma_uni_ctx90","type":"foundation model","context":90},{"name":"timeh2o_cov_ctx90","type":"foundation model","context":90},{"name":"timesfm3_cov_ctx90","type":"foundation model","context":90},{"name":"timesfm3_uni_ctx160","type":"foundation model","context":160},{"name":"timesfm3_uni_ctx30","type":"foundation model","context":30},{"name":"timesfm3_uni_ctx90","type":"foundation model","context":90},{"name":"timestral5m_cov_ctx28","type":"foundation model","context":28},{"name":"timestral5m_cov_ctx90","type":"foundation model","context":90},{"name":"timestral5m_cov_ctx90_o1630","type":"foundation model","context":90},{"name":"timestral5m_cov_no10249_ctx90","type":"foundation model","context":90},{"name":"timestral5m_uni_ctx30","type":"foundation model","context":30},{"name":"timestral5m_uni_ctx326","type":"foundation model","context":326},{"name":"timestral5m_uni_ctx90","type":"foundation model","context":90}],"generated":"2026-11-15T11:33+00:00","baseline":"slot_climatology_28d","live_config":"t0gamma_cov_ctx90","units":{"energy":"MWh","price":"EUR/MWh","wind":"MW","solar":"MW","solar_be":"MW"},"short":{"spain_mfrr_energy":"energy","spain_mfrr_price":"price","germany_wind_50hertz_ca":"wind","germany_solar_50hertz_ca":"solar","belgium_solar_opendata_elia":"solar_be"}}1{"start":1761951600,"n":35040,"configs":[{"name":"chronos2_cov_ctx90","type":"foundation model","context":90},{"name":"chronos2_uni_ctx30","type":"foundation model","context":30},{"name":"chronos2_uni_ctx90","type":"foundation model","context":90},{"name":"ciproto_cov_ctx90","type":"foundation model","context":90},{"name":"elia_dayahead11h","type":"TSO forecast","context":null},{"name":"entsoe_a69","type":"TSO forecast","context":null},{"name":"slot_climatology_28d","type":"baseline","context":28},{"name":"t0gamma_cov_ctx90","type":"foundation model","context":90},{"name":"t0gamma_cov_noecmwf_ctx90","type":"foundation model","context":90},{"name":"t0gamma_cov_noicond2_ctx90","type":"foundation model","context":90},{"name":"t0gamma_uni_ctx30","type":"foundation model","context":30},{"name":"t0gamma_uni_ctx326","type":"foundation model","context":326},{"name":"t0gamma_uni_ctx90","type":"foundation model","context":90},{"name":"timeh2o_cov_ctx90","type":"foundation model","context":90},{"name":"timesfm3_cov_ctx90","type":"foundation model","context":90},{"name":"timesfm3_uni_ctx160","type":"foundation model","context":160},{"name":"timesfm3_uni_ctx30","type":"foundation model","context":30},{"name":"timesfm3_uni_ctx90","type":"foundation model","context":90},{"name":"timestral5m_cov_ctx28","type":"foundation model","context":28},{"name":"timestral5m_cov_ctx90","type":"foundation model","context":90},{"name":"timestral5m_cov_ctx90_o1630","type":"foundation model","context":90},{"name":"timestral5m_cov_no10249_ctx90","type":"foundation model","context":90},{"name":"timestral5m_uni_ctx30","type":"foundation model","context":30},{"name":"timestral5m_uni_ctx326","type":"foundation model","context":326},{"name":"timestral5m_uni_ctx90","type":"foundation model","context":90}],"generated":"2026-11-15T11:37+00:00","baseline":"slot_climatology_28d","live_config":"t0gamma_cov_ctx90","units":{"energy":"MWh","price":"EUR/MWh","wind":"MW","solar":"MW","solar_be":"MW"},"short":{"spain_mfrr_energy":"energy","spain_mfrr_price":"price","germany_wind_50hertz_ca":"wind","germany_solar_50hertz_ca":"solar","belgium_solar_opendata_elia":"solar_be"}}
5 unmodified lines67891011114 unmodified lines12612712812913013152 unmodified lines1841851861871881895 unmodified lines<title>open-predico</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet"><style>/* Layout: a slim top bar with tabs, then one centred column of cards per tab. Gridual palette. */114 unmodified lines.day.cont { background: var(--surface); border: 2px dotted var(--cont); color: var(--ink); }.day.miss { background: repeating-linear-gradient(45deg, var(--grid) 0 3px, var(--surface) 3px 6px); }.day.pg { opacity: 0.55; }tr.pg td { color: var(--ink-soft); }.heat { display: grid; grid-template-columns: 64px repeat(31, minmax(10px, 1fr)); gap: 2px; font: 10px var(--mono); color: var(--ink-soft); min-width: 520px; }.heat div { aspect-ratio: 1; border-radius: 2px; }52 unmodified lines<section data-tab="inputs" id="tab-inputs" hidden><p class="empty">Loading…</p></section></main><script src="https://cdn.jsdelivr.net/npm/uplot@1.6.30/dist/uPlot.iife.min.js"></script><script src="app.js"></script></body></html>5 unmodified lines6789101112114 unmodified lines12712812913013113213313452 unmodified lines1871881891901911921935 unmodified lines<title>open-predico</title><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css"><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap" rel="stylesheet"><style>/* Layout: a slim top bar with tabs, then one centred column of cards per tab. Gridual palette. */114 unmodified lines.day.cont { background: var(--surface); border: 2px dotted var(--cont); color: var(--ink); }.day.miss { background: repeating-linear-gradient(45deg, var(--grid) 0 3px, var(--surface) 3px 6px); }.day.pg { opacity: 0.55; }.map { height: 440px; border-radius: 8px; border: 1px solid var(--line); }.leaflet-container { font: 12px var(--sans); background: var(--grid); }tr.pg td { color: var(--ink-soft); }.heat { display: grid; grid-template-columns: 64px repeat(31, minmax(10px, 1fr)); gap: 2px; font: 10px var(--mono); color: var(--ink-soft); min-width: 520px; }.heat div { aspect-ratio: 1; border-radius: 2px; }52 unmodified lines<section data-tab="inputs" id="tab-inputs" hidden><p class="empty">Loading…</p></section></main><script src="https://cdn.jsdelivr.net/npm/uplot@1.6.30/dist/uPlot.iife.min.js"></script><script src="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.js"></script><script src="app.js"></script></body></html>
app.js+39-7
data/geo.jsonAdded
data/meta.json+1-1
index.html+4