Study
Machine Learning · Cross-validation
k-fold, stratified and grouped cross-validation, why one train/test split is noisy, and avoiding leakage by preprocessing inside the folds.
- k-fold CV trains k models, each tested on a different fold, so the estimate uses every row once as test data.
- Fitting a scaler on the full data before CV leaks test information; put it in the pipeline instead.