Spaces:
Running
Running
Commit ·
45ded14
1
Parent(s): 89cdbba
Citation button adn dark mode
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- AGENTS.md+9-5
- assets/app.js+58-11
- assets/style.css+38-10
- data/lasagna/stability/tasks_all/binary_thr_003.svgDeleted
- data/lasagna/stability/tasks_all/overlay_top_3.svgDeleted
- data/lasagna/stability/tasks_all/plain.svgDeleted
- data/lasagna/stability/tasks_binary/binary_thr_003.svgDeleted
- data/lasagna/stability/tasks_binary/overlay_top_3.svgDeleted
- data/lasagna/stability/tasks_binary/plain.svgDeleted
- data/lasagna/stability/tasks_classification/binary_thr_003.svgDeleted
- data/lasagna/stability/tasks_classification/overlay_top_3.svgDeleted
- data/lasagna/stability/tasks_classification/plain.svgDeleted
- data/lasagna/stability/tasks_multiclass/binary_thr_003.svgDeleted
- data/lasagna/stability/tasks_multiclass/overlay_top_3.svgDeleted
- data/lasagna/stability/tasks_multiclass/plain.svgDeleted
- data/lasagna/stability/tasks_regression/binary_thr_003.svgDeleted
- data/lasagna/stability/tasks_regression/overlay_top_3.svgDeleted
- data/lasagna/stability/tasks_regression/plain.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_all/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_all/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_all/plain.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_binary/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_binary/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_binary/plain.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_classification/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_classification/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_classification/plain.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_multiclass/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_multiclass/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_multiclass/plain.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_regression/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_regression/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.5/tasks_regression/plain.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_all/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_all/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_all/plain.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_binary/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_binary/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_binary/plain.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_classification/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_classification/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_classification/plain.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_multiclass/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_multiclass/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_multiclass/plain.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_regression/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_regression/overlay_top_3.svgDeleted
- data/lasagna/validity/noise_0.75/tasks_regression/plain.svgDeleted
- data/lasagna/validity/noise_1/tasks_all/binary_thr_003.svgDeleted
- data/lasagna/validity/noise_1/tasks_all/overlay_top_3.svgDeleted
20 unmodified lines212223242526276 unmodified lines3435363738394041423 unmodified lines464748495051525320 unmodified lines`<img src>` to the generated files and resizes the iframes when a page posts `{saFrameHeight}`.Keeps the tab and the selections in the URL hash (tab keys `leaderboard`, `tradeoffs`,`stability`, `validity`; old names such as `summary`, `performance`, `data` and `about` still work).- `assets/style.css`: color tokens on `:root` (light) and in `prefers-color-scheme: dark`.- `smoke_test.py`: standard-library check of `data/` and of the version tag (see below).## Data contract6 unmodified lines`lasagna` (`variants`, `variant_labels`, and when present `stability` = `{path, task_types}` and`validity` = a list of `{noise, path, task_types}`) and `has_results_explorer`.- `subsets/tasks_<t>/models_<m>/budgets_<b>/`: `website_leaderboard.csv`, `leaderboard_table.html`,`elo_explorer.html`, and `pareto.svg` / `pareto.csv` when the subset's `pareto` is true.- `lasagna/stability/tasks_<t>/` and `lasagna/validity/noise_<level>/tasks_<t>/`: one`<variant>.svg` per entry of `lasagna.variants` and `per_epv.csv` (the plotted values).- `results.csv` and `results_explorer.html`: the results per dataset, method, downstream model andbudget (Performance Trade-offs tab, below the Pareto front; not filtered by the chips).- `per_dataset.csv` (mean rank per dataset; data only, not shown), and optionally `stability.csv`,3 unmodified lines`Subgroup` (the paper's taxonomy, e.g. Tree, Backward search), Elo and its interval, the metrics.The generated pages are self-contained (inline CSS/JS, no network) and post their height to theparent window. The SVG figures (Pareto front, lasagna plots) are matplotlib output shown with`<img>` on a white card, as in the paper; they do not follow dark mode.`subsetDir()` in `app.js` mirrors `selectarena.website.subsets.Subset.rel_path`; change bothtogether.20 unmodified lines212223242526272829306 unmodified lines3738394041424344453 unmodified lines49505152535455565720 unmodified lines`<img src>` to the generated files and resizes the iframes when a page posts `{saFrameHeight}`.Keeps the tab and the selections in the URL hash (tab keys `leaderboard`, `tradeoffs`,`stability`, `validity`; old names such as `summary`, `performance`, `data` and `about` still work).- `assets/style.css`: color tokens on `:root` (light) and for dark mode, which follows the systemsetting unless the theme button (next to "Cite") set `data-theme` on `<html>`. The choice is kept in`localStorage` (`selectarena-theme`) and passed on to the embedded pages, whose CSS(SelectArena's `website/html.py`) honours the same `data-theme` attribute.- `smoke_test.py`: standard-library check of `data/` and of the version tag (see below).## Data contract6 unmodified lines`lasagna` (`variants`, `variant_labels`, and when present `stability` = `{path, task_types}` and`validity` = a list of `{noise, path, task_types}`) and `has_results_explorer`.- `subsets/tasks_<t>/models_<m>/budgets_<b>/`: `website_leaderboard.csv`, `leaderboard_table.html`,`elo_explorer.html`, and `pareto.html` / `pareto.csv` when the subset's `pareto` is true.- `lasagna/stability/tasks_<t>/` and `lasagna/validity/noise_<level>/tasks_<t>/`: one`<variant>.html` per entry of `lasagna.variants` and `per_epv.csv` (the plotted values).- `results.csv` and `results_explorer.html`: the results per dataset, method, downstream model andbudget (Performance Trade-offs tab, below the Pareto front; not filtered by the chips).- `per_dataset.csv` (mean rank per dataset; data only, not shown), and optionally `stability.csv`,3 unmodified lines`Subgroup` (the paper's taxonomy, e.g. Tree, Backward search), Elo and its interval, the metrics.The generated pages are self-contained (inline CSS/JS, no network) and post their height to theparent window. All figures (Elo, Pareto front, lasagna plots) are such pages with an inline SVG:tooltips on hover or tap, colours that follow the page's theme, and SVG / PNG / CSV buttons whosedownloads always use the light paper look.`subsetDir()` in `app.js` mirrors `selectarena.website.subsets.Subset.rel_path`; change bothtogether.
89 unmodified lines909192939495969798124 unmodified lines22322422522622722822923023128 unmodified lines2602612622632642652662672682 unmodified lines27127227327427527627729 unmodified lines30730830931031131231314 unmodified lines32832933033133233333433533633789 unmodified linesfunction setFrame(frame, src) {if (frame.getAttribute('src') !== src) frame.setAttribute('src', src);}function setImage(img, src) {if (img.getAttribute('src') !== src) img.setAttribute('src', src);}window.addEventListener('message', function (event) {var data = event.data;if (!data || typeof data.saFrameHeight !== 'number') return;124 unmodified lines$('pareto-missing').hidden = !!info.pareto;$('pareto-figure').hidden = !info.pareto;if (info.pareto) {setImage($('img-pareto'), dir + 'pareto.svg');$('link-pareto-svg').href = dir + 'pareto.svg';$('link-pareto-csv').href = dir + 'pareto.csv';}}28 unmodified lines}function showLasagna(prefix, folder, tasks, variant) {var dir = 'data/' + folder + '/tasks_' + tasks + '/';setImage($('img-' + prefix), dir + variant + '.svg');$('link-' + prefix + '-svg').href = dir + variant + '.svg';$('link-' + prefix + '-csv').href = dir + 'per_epv.csv';}function renderStability() {2 unmodified lines$('stability-missing').hidden = !!(info || hasTable);$('stability-content').hidden = !(info || hasTable);if (hasTable) setFrame($('frame-stability'), 'data/stability_table.html');var figure = $('img-stability').closest('figure');figure.hidden = !info;$('chips-stab-tasks').closest('.controls').hidden = !info;if (!info) return;29 unmodified linesif (table) setFrame($('frame-validity'), 'data/' + table.path);var level = levels.filter(function (l) { return noiseKey(l.noise) === state.noise; })[0];$('img-validity').closest('figure').hidden = !level;$('chips-val-tasks').closest('.control').hidden = !level;$('chips-val-variant').closest('.control').hidden = !level;if (!level) return;14 unmodified linesif (hasExplorer) setFrame($('frame-results'), 'data/results_explorer.html');}// ---- start ----function start() {readHash();initTabs();fetch('data/meta.json', { cache: 'no-cache' }).then(function (response) {if (!response.ok) throw new Error('HTTP ' + response.status);89 unmodified lines909192939495124 unmodified lines22022122222322422522628 unmodified lines2552562572582592602612 unmodified lines26426526626726826927029 unmodified lines30030130230330430530614 unmodified lines32132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338489 unmodified linesfunction setFrame(frame, src) {if (frame.getAttribute('src') !== src) frame.setAttribute('src', src);}window.addEventListener('message', function (event) {var data = event.data;if (!data || typeof data.saFrameHeight !== 'number') return;124 unmodified lines$('pareto-missing').hidden = !!info.pareto;$('pareto-figure').hidden = !info.pareto;if (info.pareto) {setFrame($('plot-pareto'), dir + 'pareto.html');}}28 unmodified lines}function showLasagna(prefix, folder, tasks, variant) {var dir = 'data/' + folder + '/tasks_' + tasks + '/';setFrame($('plot-' + prefix), dir + variant + '.html');}function renderStability() {2 unmodified lines$('stability-missing').hidden = !!(info || hasTable);$('stability-content').hidden = !(info || hasTable);if (hasTable) setFrame($('frame-stability'), 'data/stability_table.html');var figure = $('plot-stability').closest('figure');figure.hidden = !info;$('chips-stab-tasks').closest('.controls').hidden = !info;if (!info) return;29 unmodified linesif (table) setFrame($('frame-validity'), 'data/' + table.path);var level = levels.filter(function (l) { return noiseKey(l.noise) === state.noise; })[0];$('plot-validity').closest('figure').hidden = !level;$('chips-val-tasks').closest('.control').hidden = !level;$('chips-val-variant').closest('.control').hidden = !level;if (!level) return;14 unmodified linesif (hasExplorer) setFrame($('frame-results'), 'data/results_explorer.html');}// ---- theme: light / dark button; without a choice the system setting decides ----var darkQuery = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;var chosenTheme = null; // 'light', 'dark' or null (follow the system); saved in localStorage when possibletry {var stored = localStorage.getItem('selectarena-theme');if (stored === 'light' || stored === 'dark') chosenTheme = stored;} catch (e) { /* private window or blocked storage: the choice lasts for this visit */ }function effectiveTheme() {return chosenTheme || (darkQuery && darkQuery.matches ? 'dark' : 'light');}function setThemeAttribute(root) {if (chosenTheme) root.setAttribute('data-theme', chosenTheme); else root.removeAttribute('data-theme');}// Pass the choice on to the embedded pages (same origin: set it directly; else by message).function themeFrame(frame) {try {var root = frame.contentDocument && frame.contentDocument.documentElement;if (root) { setThemeAttribute(root); return; }} catch (e) { /* cross-origin frame */ }if (frame.contentWindow) frame.contentWindow.postMessage({ saTheme: chosenTheme }, '*');}function renderTheme() {setThemeAttribute(document.documentElement);var dark = effectiveTheme() === 'dark';var button = $('theme-button');button.classList.toggle('is-dark', dark);var label = dark ? 'Switch to light mode' : 'Switch to dark mode';button.setAttribute('aria-label', label);button.title = label;document.querySelectorAll('iframe.sa-frame').forEach(themeFrame);}function initTheme() {$('theme-button').addEventListener('click', function () {chosenTheme = effectiveTheme() === 'dark' ? 'light' : 'dark';try { localStorage.setItem('selectarena-theme', chosenTheme); } catch (e) { /* not saved */ }renderTheme();});document.querySelectorAll('iframe.sa-frame').forEach(function (frame) {frame.addEventListener('load', function () { themeFrame(frame); });});if (darkQuery && darkQuery.addEventListener) darkQuery.addEventListener('change', renderTheme);renderTheme();}// ---- "Cite" button: scroll to the BibTeX entry without replacing the selection in the URL hash ----function initCite() {$('cite-button').addEventListener('click', function (event) {event.preventDefault();$('citation').scrollIntoView({ behavior: 'smooth', block: 'start' });});}// ---- start ----function start() {readHash();initTabs();initCite();initTheme();fetch('data/meta.json', { cache: 'no-cache' }).then(function (response) {if (!response.ok) throw new Error('HTTP ' + response.status);
11 unmodified lines12131415161718195 unmodified lines25262728293091 unmodified lines1221231241251261271281291301311321331343 unmodified lines13813914014114214314414514615 unmodified lines16216316411 unmodified lines--on-accent: #ffffff;--radius: 10px;}@media (prefers-color-scheme: dark) {:root {--fg: #e6edf3;--muted: #9198a1;--bg: #0d1117;5 unmodified lines--on-accent: #0d1117;}}* { box-sizing: border-box; }html { -webkit-text-size-adjust: 100%; }91 unmodified linespadding: 12px; overflow-x: auto; font-size: 0.82rem;}/* Figures rendered by matplotlib (Pareto front, lasagna plots): drawn on white, so they sit on awhite card in dark mode too. */.plot { margin: 4px 0 22px; }.plot img {display: block; width: 100%; max-width: 900px; height: auto;background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;}.plot[hidden] { display: none; }.plot figcaption { margin-top: 8px; }3 unmodified lines/* Keep the figures on screen without scrolling: on short screens they shrink with the windowheight (the Elo figure is about 2.6 times as wide as high, plus its toolbar). */#frame-figure { max-width: max(560px, calc((100vh - 330px) * 2.6)); }@media (min-width: 641px) and (max-height: 860px) {.plot img { max-height: max(280px, calc(100vh - 290px)); width: auto; }}/* Heading at the top of a tab (Elo, Stability, Validity). */.tab-title { margin: 4px 0 2px; }15 unmodified lines.config-title { font-weight: 600; }.config-state { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }.config[open] > .controls { margin-top: 6px; }11 unmodified lines1213141516171819205 unmodified lines2627282930313233343536373839404142434491 unmodified lines1361371381391401411421433 unmodified lines14714814915015115215315415 unmodified lines17017117217317417517617717817918018118218318418518618718818919019119211 unmodified lines--on-accent: #ffffff;--radius: 10px;}/* Dark mode: follows the system unless the theme button chose one (data-theme on <html>). */@media (prefers-color-scheme: dark) {:root:not([data-theme="light"]) {--fg: #e6edf3;--muted: #9198a1;--bg: #0d1117;5 unmodified lines--on-accent: #0d1117;}}:root[data-theme="dark"] {--fg: #e6edf3;--muted: #9198a1;--bg: #0d1117;--surface: #151b23;--line: #3d444d;--accent: #4aa3df;--accent-soft: #10273a;--validity: #f08a4b;--on-accent: #0d1117;}:root[data-theme="light"] { color-scheme: light; }:root[data-theme="dark"] { color-scheme: dark; }* { box-sizing: border-box; }html { -webkit-text-size-adjust: 100%; }91 unmodified linespadding: 12px; overflow-x: auto; font-size: 0.82rem;}/* Interactive figures (Pareto front, lasagna plots), embedded like the Elo figure. */.plot { margin: 4px 0 22px; }.plot[hidden] { display: none; }.plot figcaption { margin-top: 8px; }3 unmodified lines/* Keep the figures on screen without scrolling: on short screens they shrink with the windowheight (the Elo figure is about 2.6 times as wide as high, plus its toolbar). */#frame-figure { max-width: max(560px, calc((100vh - 330px) * 2.6)); }.fig-frame { max-width: max(560px, calc((100vh - 330px) * 2.1)); }#plot-pareto { max-width: max(560px, calc((100vh - 330px) * 1.75)); }/* Heading at the top of a tab (Elo, Stability, Validity). */.tab-title { margin: 4px 0 2px; }15 unmodified lines.config-title { font-weight: 600; }.config-state { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }.config[open] > .controls { margin-top: 6px; }/* Top-right buttons at the height of the title: theme toggle and "Cite" (jumps to the BibTeX entry). */.brand > .header-actions { display: flex; gap: 8px; align-self: flex-start; margin: 3px 0 0 auto; flex: none; }.theme-button {display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0;border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer;}.theme-button:hover { border-color: var(--accent); color: var(--accent); }.theme-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }.theme-button svg { width: 16px; height: 16px; }.theme-button .icon-sun { display: none; }.theme-button.is-dark .icon-sun { display: block; }.theme-button.is-dark .icon-moon { display: none; }.cite-button {display: inline-flex; align-items: center; flex: none;padding: 4px 14px; border: 1px solid var(--accent); border-radius: 999px;color: var(--accent); background: var(--bg); font-size: 0.85rem; font-weight: 600; text-decoration: none;}.cite-button:hover { background: var(--accent); color: var(--on-accent); }.cite-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
AGENTS.md+9-5
assets/app.js+58-11
assets/style.css+38-10
data/lasagna/stability/tasks_all/binary_thr_003.svgDeleted
data/lasagna/stability/tasks_all/overlay_top_3.svgDeleted
data/lasagna/stability/tasks_all/plain.svgDeleted
data/lasagna/stability/tasks_binary/binary_thr_003.svgDeleted
data/lasagna/stability/tasks_binary/overlay_top_3.svgDeleted
data/lasagna/stability/tasks_binary/plain.svgDeleted
data/lasagna/stability/tasks_classification/binary_thr_003.svgDeleted
data/lasagna/stability/tasks_classification/overlay_top_3.svgDeleted
data/lasagna/stability/tasks_classification/plain.svgDeleted
data/lasagna/stability/tasks_multiclass/binary_thr_003.svgDeleted
data/lasagna/stability/tasks_multiclass/overlay_top_3.svgDeleted
data/lasagna/stability/tasks_multiclass/plain.svgDeleted
data/lasagna/stability/tasks_regression/binary_thr_003.svgDeleted
data/lasagna/stability/tasks_regression/overlay_top_3.svgDeleted
data/lasagna/stability/tasks_regression/plain.svgDeleted
data/lasagna/validity/noise_0.5/tasks_all/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.5/tasks_all/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.5/tasks_all/plain.svgDeleted
data/lasagna/validity/noise_0.5/tasks_binary/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.5/tasks_binary/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.5/tasks_binary/plain.svgDeleted
data/lasagna/validity/noise_0.5/tasks_classification/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.5/tasks_classification/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.5/tasks_classification/plain.svgDeleted
data/lasagna/validity/noise_0.5/tasks_multiclass/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.5/tasks_multiclass/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.5/tasks_multiclass/plain.svgDeleted
data/lasagna/validity/noise_0.5/tasks_regression/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.5/tasks_regression/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.5/tasks_regression/plain.svgDeleted
data/lasagna/validity/noise_0.75/tasks_all/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.75/tasks_all/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.75/tasks_all/plain.svgDeleted
data/lasagna/validity/noise_0.75/tasks_binary/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.75/tasks_binary/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.75/tasks_binary/plain.svgDeleted
data/lasagna/validity/noise_0.75/tasks_classification/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.75/tasks_classification/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.75/tasks_classification/plain.svgDeleted
data/lasagna/validity/noise_0.75/tasks_multiclass/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.75/tasks_multiclass/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.75/tasks_multiclass/plain.svgDeleted
data/lasagna/validity/noise_0.75/tasks_regression/binary_thr_003.svgDeleted
data/lasagna/validity/noise_0.75/tasks_regression/overlay_top_3.svgDeleted
data/lasagna/validity/noise_0.75/tasks_regression/plain.svgDeleted
data/lasagna/validity/noise_1/tasks_all/binary_thr_003.svgDeleted
data/lasagna/validity/noise_1/tasks_all/overlay_top_3.svgDeleted