Machine Learning, FoundationsLesson 39 of 92

Module 4 · Generalisation, and the discipline of held-out data

A validation set you have used two hundred times

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 10 in this chapter

This chapter’s goalDesign a validation scheme that matches the structure of the data (grouped, stratified or time-ordered as required) run a hyperparameter search inside it without contaminating the estimate, and state from a learning curve whether the next improvement should come from more data, better features or a different model.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:49Not available
Full audiobookNot availableNot available
How far the winning score overstates the truth2 models compared0.9010 models compared1.7100 models compared2.41,000 models compared3points of inflation in the best scoreA 2,000-row validation set, accuracy near 85 per cent, standard error about 0.8 points, modelsgenuinely equivalent. The best of a hundred beats its true value by roughly 2.4 points: enough to turnno improvement into a clear win. Nothing was faked; noise was selected for.
A 2,000-row validation set, accuracy near 85 per cent, standard error about 0.8 points, models genuinely equivalent. The best of a hundred beats its true value by roughly 2.4 points: enough to turn no improvement into a clear win. Nothing was faked; noise was selected for.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Overfitting the validation set

You did everything right. You split off a validation set, you never trained on it, you used it only to compare models.

And then you compared 340 models against it over six weeks.

Each comparison used the validation set to make a decision. The final model was chosen because it scored highest, and part of why it scored highest is that its particular errors happened not to land on those particular rows. The validation set has been slowly incorporated into the model through your decisions, and its score is no longer an unbiased estimate of anything.

This is sometimes called the garden of forking paths, and it has a mathematical shape: the maximum of many noisy estimates is biased upward, and the bias grows with the number of estimates and shrinks with the size of the set.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘A validation set you have used two hundred times’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/the-validation-set-wears-out (Accessed: 29 November 2026).