What are best practices for Cross-Validation Techniques
Short answer
Use stratified cross validation for classification tasks with uneven class sizes, and always perform any data preprocessing separately within each fold.
Advertisement
AModel answer
Use stratified cross validation for classification tasks with uneven class sizes, and always perform any data preprocessing separately within each fold.
Real-world example
A team building a disease prediction model uses five fold cross validation to make sure their reported accuracy is stable and not just the result of one favorable data split.
Likely follow-ups
- What is a validation set, What is overfitting, What is model evaluation
Related topics