Skip to content

EMRY-043: run comparison overlay - #79

Merged
vxfemboy merged 2 commits into
mainfrom
emry-043-run-compare
Jun 26, 2026
Merged

EMRY-043: run comparison overlay#79
vxfemboy merged 2 commits into
mainfrom
emry-043-run-compare

Conversation

@vxfemboy

Copy link
Copy Markdown
Member

Closes #31

What

Adds a run comparison overlay to the web dashboard: load a prior run's metrics.jsonl and draw its series as a dashed line behind the live curve, so a run can be compared against a baseline at the same training step.

How

  • emry-web/baseline.rsload_baseline(path) reads a run's metrics.jsonl (file or run dir) into per-metric (steps, values) series (Baseline / BaselineSeries). Unparseable lines are skipped.
  • server.rsAppState { live, baseline }; new GET /baseline route serving the series as JSON once; serve_with_baseline(addr, events, labels, baseline). app() / serve_with_labels() keep working with an empty baseline.
  • index.html — fetches /baseline once on load, overlays the matching metric as a dashed amber line, folds the baseline's in-window points into the y-scale so both curves align, and shows a "baseline" legend.
  • web_demo — synthesizes a slower-decaying prior run as the baseline.

Verification

  • Full local gate green (fmt + clippy -D warnings + tests + 92.87% coverage).
  • Verified live in Chrome: dashed baseline sits above the live loss curve, legend present, checkpoint/phase markers intact, no console errors.

🤖 Generated with Claude Code

vxfemboy added 2 commits June 25, 2026 19:36
Load a prior run's metrics.jsonl into per-metric (steps, values) series and
serve it once at /baseline. The dashboard fetches it on load and overlays the
matching metric as a dashed amber line behind the live curve, with the
baseline's in-window points folded into the y-scale so both align.

- emry-web/baseline.rs: load_baseline + Baseline/BaselineSeries
- server.rs: AppState (live + baseline), /baseline route, serve_with_baseline
- index.html: fetch /baseline, dashed overlay + legend
- web_demo: synthesizes a slower-decaying prior run as the baseline
@vxfemboy
vxfemboy merged commit 680e148 into main Jun 26, 2026
4 checks passed
@vxfemboy
vxfemboy deleted the emry-043-run-compare branch July 2, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EMRY-043: Run comparison overlay

1 participant