F0-04 — Data Quality, Splitting & Leakage
Curriculum: D1-01 to D1-09
Learning material
Section titled “Learning material”- Google — Datasets, Generalization, and Overfitting
- Google — Dividing datasets
- Google — Imbalanced datasets
- scikit-learn — Common pitfalls
Core rule
Section titled “Core rule”Split first. Fit preprocessing on training data only. Apply the learned transformation to validation/test data.
A scaler, imputer or feature selector fitted on the full dataset can leak information from the evaluation set.
Completion evidence
Section titled “Completion evidence”Diagnose one leakage scenario, one bad-split scenario and one imbalanced-class scenario.