Skip to content

Cross-Validation

A method for evaluating a model: data is divided into several parts (folds), and the model is trained several times — each time one part serves as the test set, and the rest as the training set. The result is an average score across all runs.

Why

Evaluation on a single split train/test depends on how the data is split. Cross-validation averages the results and provides a more honest picture.

Types

  • K-Fold — data is divided into k parts;
  • Stratified K-Fold — with class proportions preserved;
  • Leave-One-Out — one example at a time in the test set.

See also

← All terms