Repository navigation
Resample whole pages in bootstrap confidence intervals - #62
Merged
Merged
Conversation
Comparisons from one page share an image and its difficulty, so they are not independent. Resampling single comparisons made intervals too narrow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva
Identical or few pages give zero-width intervals, which could end adaptive judging after one batch. Rankings now need at least 10 distinct pages to count as resolved. A model absent from a resampled replicate now gets no rating in that replicate instead of an arbitrary one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva
A model seen on one page could get a narrow interval and end targeted judging, because the page minimum counted pages across the whole board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva
Each fit centres on its own models, so a replicate that omitted a model sat on a different scale. A rare model could inflate other models' intervals with no new evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva
This was referenced Nov 3, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
_bootstrap_ciresampled single comparisons. All model pairs on one page share that page's image and difficulty, so those comparisons are not independent, and the resulting intervals can be too narrow.The bootstrap now resamples whole pages, grouped by
sample_idx, and refits Bradley-Terry on each replicate. The docs and generated dataset card now say page-level.Page resampling adds two failure cases, which this PR also handles:
MIN_PAGES_TO_RESOLVE) to count as resolved, in bothrankings_resolvedandclassify_adjacent_pairs. The threshold is a judgement call, not a measured value.Behaviour changes:
prefer-smallerrule does not use the page minimum. It keeps its own direct-comparison minimum.Not covered:
Tests: 623 passed, Ruff clean. The new tests cover page-level resampling, the page minimum, and models missing from a replicate.
🤖 Generated with Claude Code
https://claude.ai/code/session_016isSPnE9rsNNnxSw1x9Lva