An evaluation protocol is a prescribed procedure for estimating how well a model will generalize to representative production data. Reliable evaluation guides modeling decisions and exposes the tension between optimization and generalization. section 5.2.3 section 6.2.2
Choose the protocol and data split according to the problem:
- Use a hold-out validation set when sufficient data makes a single split reliable. section 6.2.2
- Use K-fold cross-validation when too few samples make hold-out validation unreliable. section 6.2.2
- Use iterated K-fold validation when little data requires especially accurate evaluation. section 6.2.2
- Keep training and validation data representative, disjoint, and free from temporal or duplicate-data leakage. section 5.2.3
Avoiding a misleading split
For digit classification, splitting an array ordered by class can place classes 0–7 in training and 8–9 in testing. Randomly shuffle before splitting, unless the task predicts the future; then keep test data later in time than training data. section 5.2.3
