Machine Learning, FoundationsLesson 37 of 92

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

Would more data help? The curve that answers it

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 6 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
Error against training-set size, still climbing0255010100Training rows used, per cent of the dataError, per cent—— Validation error– – Training errorValidation error is still falling at 100 per cent of the data: the last doubling took nearly threepoints off, so more rows will help, and the next doubling will buy less than three. Training errorrising is the model meeting reality, not the model getting worse.
Validation error is still falling at 100 per cent of the data: the last doubling took nearly three points off, so more rows will help, and the next doubling will buy less than three. Training error rising is the model meeting reality, not the model getting worse.

Figure

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

An expensive question with a cheap answer

“Should we spend three months collecting more data?” is one of the most consequential questions a team asks, and it is usually answered by intuition. It can be answered by a plot that takes twenty minutes.

Fit the model on 10% of your training data, then 20%, and so on, recording both training and validation score at each size.

Python
from sklearn.model_selection import learning_curve
import numpy as np
sizes, train_s, val_s = learning_curve(
    pipe, X, y, cv=5,
    train_sizes=np.linspace(0.1, 1.0, 8), scoring="roc_auc")

Plot the means of train_s and val_s against sizes.

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) ‘Would more data help? The curve that answers it’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/learning-curves-and-more-data (Accessed: 29 November 2026).