Validation Set
Updated 2026-07-30
Summary
A common task in machine learning is to learn from data and build a model (a process called training) that can make predictions on future data. The dataset used to build the final model is typically split into multiple subsets; at different stages of model building, there are usually three types of datasets: training set, validation set, and test set. First, the model is fitted on the training dataset. For supervised learning, the training set consists of samples used to fit parameters (e.g., weights of connections between neurons in an artificial neural network). In practice, the training set is usually composed of pairs of input vectors (scalars) and output vectors (scalars), where the output vector (scalar) is called the target or label. During training, the current model makes predictions for each sample in the training set and compares the predictions with the targets. Based on the comparison results, the learning algorithm updates the model...
Definition
Data split: training set / validation set / test set. Purpose: hyperparameter tuning and model selection, not used for final evaluation. Prevent overfitting: the model cannot 'see' the data used for final evaluation. Scaffold use: ensure the model's generalization ability. Performing well on 'known data' doesn't count; it must also perform well on 'unseen data'.
Introduction
How to use
Ensure the model's generalization ability. Performing well on 'known data' doesn't count; it must also perform well on 'unseen data'.
Mechanism
The validation set is a subset of data used during training for hyperparameter tuning, model selection, and early stopping, separated from the training set to avoid test set leakage. It estimates the model's performance on data that has been 'seen' but not used for training.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- When training neural networks, use validation loss for early stopping; use the validation set for cross-validation to select models.
Common pitfalls
- Repeatedly tuning hyperparameters on the validation set as if it were the test set, leading to optimistic estimates of generalization (validation leakage); ignoring distribution shift.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E8%AE%AD%E7%BB%83%E9%9B%86%E3%80%81%E9%AA%8C%E8%AF%81%E9%9B%86%E5%92%8C%E6%B5%8B%E8%AF%95%E9%9B%86verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS