Skip to main content

Training Set, Test Set

Training Set, Test Set

  • Data & retrieval
  • Stage 1 · Getting In
  • refs checked 2026-11-19
What problem it solves

Split the data into two piles: one to practice with, one kept for the exam.

What it is
The training set is what the model learns from; the test set never takes part in training and is used only for evaluation. A score reflects real ability only when it comes from the test set.
Train learns weights, validation tunes hyperparameters and early stopping, test is used once at the end; repeated test tuning turns it into another training set.
Train learns weights, validation tunes hyperparameters and early stopping, test is used once at the end; repeated test tuning turns it into another training set.
Why it matters

The same model scores differently on different test sets. When comparing two models, first ask whether they sat the same exam.

Chinese aliases

Sources
  • scikit-learn model selection and evaluation ↗
  • Google ML Crash Course: overfitting ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →