Repository navigation
feat(selection): Selection.trim, the fewest SFT rows your test can see - #961
Merged
Merged
Conversation
trim(n) keeps the first n of one nested order (seeded random by default,
diverse / target with embeddings, bigram offline; duplicates last).
trim({n: scores}, base=) fits rectified, power and log-linear learning
curves, keeps the form that best predicts the largest size, and returns
N*, the smallest size past which a doubling gains under min_gain, with a
paired bootstrap range and a detectable-gain check.
Grounded in arXiv:2410.09335, 2410.15225, 2503.01807, 2502.17184,
2402.02314, 2209.06640, 2308.01825, 2411.00640, 2507.00885.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
No issue: Jacob asked for a trim() that finds the fewest SFT rows that saturate a test (2026-10-12).
Selection.trim(): how many SFT rows still move your test, and which rows to keep. Guide:docs/trim.md.What it does and the evidence
diverse(k-means on embeddings),target(closest to dev set),bigram(offline)min_gain(0.01)forecastpast 2x largest size,not identifiable,flatCheck
Simulated curve with known N* = 3,716: fit says 5,330, 90% range 2,551 to 6,607. A curve stopped at 1,024 comes back
forecast. N* stays put when the test grows from 200 to 2,000 items. 15 new tests; full suite 2,693 passed; ruff, mypy, no-hardcoding clean.Open: no published numbers on SFT seed variance by subset size, or on selection for pools of a few hundred to a few thousand rows. Next step is running this on 3-4 real datasets.
🤖 Generated with Claude Code