If we don’t have enough training examples, we could use K-fold cross-validation (CV):
- Split data into equal subsets / folds to test on
- Train on sets and test on remainder fold only
- Repeat times (test on each fold only once)
- Computer misclassification error averaged over all test folds

The final performance is the average of the performances for each fold. Average test set score is a better estimate of the error rate than a single score. Common values of are and , both giving error estimates that are very likely to be accurate.
Extreme case is when , the number of data points.