This is a substantial and high-quality piece of engineering. It makes several critical improvements to the training pipeline that address real-world operational concerns. My review is strongly positive.
This PR hardens the nbcore training pipeline by tackling two fundamental issues: the risk of OOM errors from loading large training windows into memory, and the temporal information leakage from using a random train/test split.
It introduces:
- A week-by-week streaming pattern (
stream_training_weeks) to cap peak memory usage.