Repository navigation
Add CondonFM skill - #53
Conversation
Signed-off-by: Ohad Mosafi <omosafi@nvidia.com>
|
| if sequence in sequence_splits and sequence_splits[sequence] != split: | ||
| raise ValueError("Identical CDS appears in different source folds; resolve split leakage before training") | ||
| seen_ids.add(row_id) | ||
| sequence_splits[sequence] = split | ||
| if max_rows_per_split and counts[split] >= max_rows_per_split: | ||
| continue |
There was a problem hiding this comment.
Discarded rows block sample preparation
prepare() records sequences before checking whether their split is already full. With the default row cap, a discarded training row can make a later validation or test row fail the cross-split check. The helper then produces no CSV, even though the duplicate would not appear in its output.
Check the split cap before checking and recording IDs and sequences. Add a test for this case. The aggregate copy of prepare_ribonn.py needs the same fix.
No description provided.