Glossary

Overfitting

Learning features of the training examples that fail to carry over to genuinely new cases.


A rock classifier does brilliantly on museum photographs. Then somebody swaps the blue tray for a grey one. The rocks haven’t changed. Several predictions have.

Change the background of the test

Photograph both rock types against the new background and look at which errors appear. Perhaps the museum used the blue tray mainly for one rock type, and the model acquired an excellent eye for trays. A random image split could easily let that shortcut work on both sides.

After using the grey-tray photos to improve training, save a fresh group for the final evaluation. A set that helps you choose the next version has become part of development.

What it means

An overfit model can track the particular noise, quirks or collection practices in its training set. Comparing training performance with suitable held-out data helps reveal the gap. The most telling test cases differ in the ways new observations will differ in practice.

A widening gap between training and validation error can be a clue. The gap needs interpretation. Changes in population, wrongly labelled records and leakage can all affect it. A small evaluation set also makes a few unusual cases disproportionately influential.

For the rock collection, inspect the images on which a model trained with blue trays is confidently wrong. If the tray colour keeps showing up in that group, photograph a rock on both backgrounds. Two deliberately chosen photographs can expose a shortcut that a long table of averages conceals.

Why it matters for researchers

Regularization, simpler models, appropriate augmentation and additional independent data can all help. Choose changes using development data, then evaluate the chosen procedure on a reserved test set. If different people, devices or specimens are the intended users or subjects, split at that level. The test should ask a question that genuinely mattered before you saw its score. Scikit-learn guidance on evaluation pitfalls