界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

score_based_subset_selection

score_based_subset_selection

【效率与协作】Select retained and pruned supervised-training examples from EL2N or GraNd scores using deterministic pruning rules.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: score_based_subset_selection description: Select retained and pruned supervised-training examples from EL2N or GraNd scores using deterministic pruning rules.

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 id and numeric score.
  • retain_fraction or retain_count.
  • Optional mode: high_score or offset_window.
  • Optional offset_fraction for offset-window selection.

Outputs

  • Selected example ids.
  • Pruned example ids.
  • Selection statistics and tie policy.

Workflow

  1. Validate unique ids and finite scores.
  2. Sort by descending score for standard high-score retention.
  3. Convert fraction to an exact selected count with floor and minimum one.
  4. Apply deterministic tie-breaking by id string.
  5. 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.
我的收藏