Skip to content

fix(eval): score the leaderboard record over the whole benchmark - #137

Merged
DzmitryPihulski merged 1 commit into
mainfrom
fix/leaderboard-accuracy-over-benchmark
Oct 9, 2026
Merged

DzmitryPihulski merged 1 commit into
mainfrom
fix/leaderboard-accuracy-over-benchmark

Conversation

@DzmitryPihulski

Copy link
Copy Markdown
Collaborator

Follow-up to #136.

evaluate(..., save_leaderboard_yaml=...) wrote execution_accuracy computed over the predictions file, so a partial run (crash, --limit, filtered file) would get a full-looking leaderboard score. The leaderboard record now uses accuracy_over_benchmark (unanswered questions count as wrong) and the benchmark size as num_samples.

The JSON report keeps both accuracy and accuracy_over_benchmark.

All 13 current leaderboard entries are full, duplicate-free runs (80,330 unique ids each), so their published numbers do not change.

Tests: updated the dict-outputs test (1 of 2 questions answered → 0.5) and added a partial-run regression test. CPU suite: 228 passed, 4 skipped; ruff clean.

The leaderboard run.yaml used accuracy over the predictions file, so a
partial run could rank too high. Use accuracy_over_benchmark (from #136)
and the benchmark size as num_samples. Full, duplicate-free runs (all
current leaderboard entries) are unaffected.
@DzmitryPihulski
DzmitryPihulski merged commit 643f5a8 into main Oct 9, 2026
3 checks passed
@DzmitryPihulski
DzmitryPihulski deleted the fix/leaderboard-accuracy-over-benchmark branch October 9, 2026 20:10
@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant