What Rotating Validation Folds Measure

Cross-validation repeats training and evaluation on several partitions so different examples serve as validation under the chosen split rule.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace three folds
  2. Keep later decisions separate
  3. Rotate the held-out role without training on it
  4. Separate selection and final assessment where feasible

Trace three folds

Fit on folds 2 and 3 to evaluate fold 1, then rotate through the other choices. Each validation prediction comes from a fit excluding that fold. See cross-validation and selection.

Keep later decisions separate

Selecting settings using fold scores uses those examples for model selection. A final independent test can assess the chosen process. Training and test boundaries state the distinct roles.[1][2]

Rotate the held-out role without training on it

With groups A, B and C, a three-fold setup can fit on A and B and score C, then rotate the omitted group. Each fit includes no examples from its validation fold. Aggregate scores according to the intended weighting. See holding out whole groups.

Fit A+B, validate C
Fit A+C, validate B
Fit B+C, validate A
Preprocessing is fit afresh inside each fit

Separate selection and final assessment where feasible

Trying several configurations against the same folds makes those estimates part of selection. A distinct test set or nested design can assess the selected procedure. Report how folds were constructed.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩
  2. scikit-learn Developers, Metrics and Scoring: Quantifying the Quality of Predictions ↩