Score-Based Subset Selection
Use this skill after EL2N or GraNd scores have been computed and a pruning experiment needs a reproducible retained subset. It implements the paper's standard rule of pruning low-score examples and retaining high-score examples, plus an offset-window mode for noise-analysis style checks.
Inputs
- Example records with
idand numericscore. retain_fractionorretain_count.- Optional
mode:high_scoreoroffset_window. - Optional
offset_fractionfor offset-window selection.
Outputs
- Selected example ids.
- Pruned example ids.
- Selection statistics and tie policy.
Workflow
- Validate unique ids and finite scores.
- Sort by descending score for standard high-score retention.
- Convert fraction to an exact selected count with floor and minimum one.
- Apply deterministic tie-breaking by id string.
- Return selected/pruned complements and score-boundary statistics.
Validation
Run:
python tests/test_selection.py
python scripts/select_subset.py --fixture
Limitations
- This skill consumes scores; it does not compute EL2N/GraNd.
- It does not train models or decide whether final accuracy is acceptable.