Skip to content

Prepare neural run 3: min epochs, held-out selection split - #40

Merged
professor3333 merged 1 commit into
mainfrom
feature/neural-run-3
Nov 6, 2026
Merged

professor3333 merged 1 commit into
mainfrom
feature/neural-run-3

Conversation

@professor3333

Copy link
Copy Markdown
Owner

Summary

  • TrainConfig.min_epochs: early stopping may end a run only after this many epochs. In run 2, 11 of the 12 uniform-weight runs scored 0 at epoch 1 and were stopped at epoch 4, before they predicted anything. New test (parametrised) confirms a constant-score run trains for min_epochs.
  • triggermap corpus split-dev draws an immutable selection / held-out split of dev gold by leakage group (seed 0). splits/selection-v1/ holds the 172 model-drafted dev records of batch-03 + batch-06:
    • selection: 111 documents in 46 groups, used for early stopping and run selection;
    • held-out: 61 documents in 46 other groups, used only for comparisons.
      The manifest records the gold file hashes, the split hash and the list hashes.
  • --dev-subset (train, experiment) and --subset (evaluate, compare) take a JSON list of advisory ids. Tests cover both and split-dev.
  • Grids distilbert-3 / deberta-3: same 24-run grid, up to 20 epochs, min_epochs = 6, patience 3.
  • Scripts: run_neural.sh stops early on the selection half; score_neural.sh scores and compares on the held-out half and on the 10 hand-labelled documents. Smoke-tested on the run-2 archive.
  • docs/training_on_gpu.md updated.

This removes run 2's caveat: comparisons on the held-out half are not biased by run selection. The test split is not touched.

Checks

  • ruff check, ruff format --check, mypy src/, pytest -m "not slow" (241 passed); shellcheck clean; both grids dry-run to 12 runs.

TrainConfig.min_epochs keeps early stopping from ending a run before it
starts predicting (run 2's uniform-weight runs stopped at epoch 4).
corpus split-dev draws splits/selection-v1 from the model-drafted dev
batches by leakage group: 111 documents for early stopping and run
selection, 61 held out for comparisons. train/experiment take
--dev-subset and evaluate/compare take --subset. Grids distilbert-3 and
deberta-3 run up to 20 epochs with min_epochs 6.
@professor3333
professor3333 merged commit 33179c2 into main Nov 6, 2026
2 checks passed
@professor3333
professor3333 deleted the feature/neural-run-3 branch November 6, 2026 04:11
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