Skip to content

LR scheduler: cosine learning rate and weight averaging for the FDR classifier - #975

Open
GeorgWa wants to merge 1 commit into
mainfrom
feat/fdr-lr-scheduler-main
Open

GeorgWa wants to merge 1 commit into
mainfrom
feat/fdr-lr-scheduler-main

Conversation

@GeorgWa

@GeorgWa GeorgWa commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

was reviewed before here #944
Was merged into wrong branch and dropped by accident.

…classifier

The FDR classifier trains for 10 epochs at a constant learning rate and predicts
with the weights after the last minibatch. Where the 1% cut falls then depends on
the last noisy minibatch updates, so searches that differ only in the random seed
keep noticeably different precursors.

Two training settings, applied to every classifier fit (calibration rounds and
final round alike), on by default:
- fdr.lr_schedule: "cosine" decays the learning rate from its start value to zero
  over all minibatches of the fit ("constant" is the previous training);
- fdr.weight_averaging: true predicts with the network weights averaged over the
  minibatches of the last epoch.

The FDR manager reads both settings from the config and configures the classifier
before each fit; the classifier's own defaults are unchanged, so "constant" +
false reproduces the previous training.

HeLa 200 ng 2 min, 6 raw files, 5 seeds each: the median difference in human
precursor IDs between two searches dropped from 0.95% to 0.17%, and the
precursors per search rose from 101.1k to 103.0k. Applying it to the calibration
fits as well halves the difference in entrapment FDP between two seeds for the
same raw file (mean 0.11 -> 0.06 points, worst pair 0.40 -> 0.14) at the same IDs
and run time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

4 participants