Map 1 · Supervised learning · Step 4
Evaluate honestly
Will it work on customers it has never seen?
Key formula
Fact or figure
In 5-fold cross-validation every row is used for validation exactly once and for training four times.
Skip this step and…
Pick the model with the lowest training error and you pick the one that memorised the noise.
Telco example
Training error 2%, validation error 15%: a 13-point generalisation gap that says the churn model overfits.
Learn it
Taught in Section 2 (Statistical Learning and Model Evaluation) of the course. The map follows the machine learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.
- 2.3 Underfitting and OverfittingToo simple and a model misses the pattern; too flexible and it memorises noise. How to recognise each from training and validation errors, and what to do about it.
- 2.4 Generalisation and the Generalisation GapGeneralisation is performing well on new data. The generalisation gap is how much worse a model does there than on its training data. What makes the gap grow or shrink, and what to do when test scores disappoint.
- 2.7 Cross-validationK-fold cross-validation step by step, a worked comparison of two models, why each fold is an independent experiment, and when ordinary random folds are the wrong tool.
How it connects
Feeds into · Step 5
Control complexityCross-validation is how λ and C are chosen
How simple can the model be and still capture the pattern?
Builds on · Step 2
Get, split and prepare the dataCross-validation reuses the training split
How do I keep part of the data honest for the final check?
Builds on · Regression lane · step R4
Score itOnly the out-of-sample score counts
How far off are the predictions, in units people understand?
Builds on · Classification lane · step C3
Score itScore on held-out data, not training data
How good is it at catching the class that matters?
Builds on · Foundation
No free lunchWhy candidates are compared on held-out data
No algorithm is best on every problem.
Builds on · Foundation
Empirical vs population riskHeld-out data estimates population risk
estimates
Builds on · Foundation
Bias–variance trade-offExplains the generalisation gap