You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6068e7e
Browse filesBrowse the repository at this point in the historyBrowse files
Make the RESET algorithm reproducible and independent of thread count
- The pseudo-target assignment used std::for_each, which GCC's parallel
mode runs on several threads. The threads then drew from the global
random number generator concurrently, and the labels differed between
runs. A plain loop draws the numbers in input order.
- With a single training fold (RESET), mergeCpCnPairs divided the
number of positives by numFolds - 1 = 0 and cast the infinite result
to int, which is undefined behaviour. The value feeds the stopping
rule. The divisor is now at least 1.
- Input files can contain rows with the same id, scan, mass and label
(percolatorTab has several). These tie in every sort order, so the
parallel sort, used with more than one thread, could place them in
another order than the sequential sort, and RESET then kept another
PSM per peptide. PSMDescription stores the input line number in what
was padding (the object stays 88 bytes), and all ScoreHolder orders
use it as the last tie-break after the id. CompositionSorter sorts
with the total ScoreHolder order instead of the score alone.
RESET output on percolatorTab is now identical for 1, 3 and 4 threads
and between runs. Default outputs are byte-identical to the previous
commit.
Interface: PSMDescription::setLineNr/getLineNr and the helper
compareIdAndLine in ScoreHolder.h are new.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017yywhfE3wwkLwPUfoERjp6
0 commit comments