Advertisement
Beginner Machine Learning Fundamentals, Cross-Validation Techniques

How does Cross-Validation Techniques work

Short answer

In k fold cross validation, the data is divided into k equal parts. The model is trained on k minus one parts and tested on the remaining part, and this process repeats k times so every part is used for testing once.

Save Machine Learning Fundamentals mock interview
Advertisement
AModel answer
In k fold cross validation, the data is divided into k equal parts. The model is trained on k minus one parts and tested on the remaining part, and this process repeats k times so every part is used for testing once.
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