liveBook · Manning

Evaluation dataset

As explained in Machine Learning System Design

A designated partition of data reserved for evaluating or tuning a machine learning model during development.

An evaluation dataset is a partition reserved for measuring a model rather than training it. In a three-way split, the validation set supports model comparison and tuning during development; the test set is reserved for final evaluation. A reliable evaluation pipeline should produce repeatable results, but repeatability alone does not guarantee that the results reflect future performance. section 7.1 section 7.2.1

Repeatedly choosing features, hyperparameters, or models against the same validation set can overfit decisions to that set and make results look better than they are. The test set can be abused in the same way, so keep it for final evaluation. Revisit the validation process when data sources, features, or feedback from model use change. section 7.1 section 7.2.1

Design the split around the deployment problem:

  • Check representativeness. A simple split assumes training, validation, and test data share a distribution that will also hold in the future; validate that assumption rather than taking it for granted. section 7.1
  • Choose proportions for the available data and the required metric reliability. A 60/20/20 split is one option, not a universal rule; splitting can be random or based on a criterion or strata. section 7.2.1
  • Prevent leakage. For search queries, keep each user's queries in only one split and remove duplicate queries; otherwise, evaluation may not reflect performance on new users. section 7.5.2

Choose an update procedure that matches how data arrives and how models need to be compared:

  • Fixed shift: use a recent window when recency matters. For example, validate on the last two weeks, update the window daily, and retrain the model used for evaluation each time. section 7.4
  • Fixed ratio: divide newly labeled data between training and validation while retaining their size ratio. This gives the model access to new patterns without excluding those patterns from evaluation. section 7.4
  • Fixed golden set: retain an unchanged benchmark for comparisons across models, potentially including manually selected hard cases and reference responses. Its stability favors comparability; a separate, updated evaluation can reflect newer patterns. section 7.4
Figure 7.7 Common options for updating train/validation sets. The light data blocks are used for training, while the dark ones are used for validation.
figure

Compare the training and validation windows in the three update procedures. section 7.4

Search-query validation

For a search engine, group queries by user and randomly assign users to training, validation, or test splits, starting with a possible 90/5/5 ratio. Assign each new user once and keep that assignment stable. Deterministic user-ID bucketing provides a way to adjust split proportions later. Random assignment may help with seasonal and distribution differences, but additional analysis is needed to confirm this. section 7.5.2

Tracking recent and long-term performance

A retail evaluation can update its split weekly as new data and labels arrive, keeping validation windows aligned to whole weeks. A separate holdout benchmark, updated every three months, tracks longer-term improvements. section 7.5.1

How Machine Learning System Design covers it

How deep it goes
Details split selection, leakage prevention, and update procedures, including tradeoffs between recent data and stable benchmarks.
Examples
Uses rolling two-week validation, a retail benchmark, and user-grouped search-query splits to illustrate evaluation choices.
What you can do after
Evaluate and design data splits and update procedures for model tuning and final evaluation.
How it connects
Connects evaluation datasets to hyperparameter optimization, feature selection, data leakage, distribution drift, and holdout sets.

Also explained in

Compare how 28 books explain evaluation dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.