Training Set
The portion of data used to fit a model's parameters during learning.
Keep three production runs apart
Imagine training a model to identify chipped ceramic rims from photographs. Each cup appears in several views.
- Fit
Use labeled cups from earlier runs to adjust the model’s weights. All views of each cup stay together.
- Select
Use a separate run to compare model settings and pick the detection threshold.
- Test
Set aside a later run until those choices are fixed. Its errors estimate performance on fresh cups under those conditions.
Why one cup should stay in one split
A near-identical view of the same chip on both sides of the split can make the task artificially easy. Decide which unit must be new at deployment, then keep that unit together when dividing the data. If a future camera or production line changes the images, evaluate that condition separately.
Follow the idea
Supervised learning explains the role of the chip labels during fitting.
Overfitting explains why strong training results can fade on fresh examples.
Related concepts
Examples in the AI guides
Source · scikit-learn’s guide to cross-validation
Return to Training Set in the A–Z glossary