Repository navigation
train: model acceptance gate on the out-of-core path (search::match_spectra_out_of_core) - #124
Merged
Merged
Conversation
…h fragment-ion retrieval (match_spectra_out_of_core), not the in-RAM path
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The model acceptance gate in
andes train(gate::count_target_psms, used byevaluate_candidate) now searches on the out-of-core path with fragment-ion retrieval instead of the in-RAM path. This removes another user of the in-RAM path, which is being retired.The gate compares a candidate model against the current one, and both now go through the same retrieval, so the accept/reject comparison stays like-for-like. The gate is a simplified search: rank score only, 0.5 Da, its own target-decoy count. It does not try to reproduce
andes search. Training-label bootstrapping (labeled::bootstrap_labels) stays on the in-RAM path for now. Moving it changes the labels, and so the retrained models, so it should go with the next model retrain and be validated against the current models.Changes
search::match_spectra_out_of_core: a single-shot search on the out-of-core path with fragment-ion retrieval.OUT_OF_CORE_SLICE_DA), so the per-chunk index stays bounded for any input size.spectrum_idxset to the input position, plus the candidates the queues reference.index_order_mass,index_chunk_lenandINDEX_CHUNK_SIZEmoved from theandesbinary intosearch::fragment_index, so the binary and the library chunk the same way. This move is mechanical.gate::count_target_psmscallsmatch_spectra_out_of_core. The module docs no longer claim the gate runs the same search asbootstrap_labels.Verification
-D warningsis clean, and 1,137 tests pass, including the model-train gate and end-to-end training tests.match_spectra_out_of_core_keeps_input_order_and_finds_the_enumeration_top_hit. Spectra are passed in descending precursor mass. It checks that queues come back in input order with matchingspectrum_idx, and that each top peptide equals the in-RAM enumeration's.andes searchoutput is unchanged: TMT defaultcc21d15c58and Astral default339077c5e0, byte-identical to main.