Glossary

What is Validation set?

In Turkish: Doğrulama seti · Topic: Data and evaluation

A separate slice of data, held out from training, that is used to tune a model and pick its best version while it is being developed. It gives an interim read on how the model performs on data it has not learned from.

How does it work?

The available data is usually split three ways: training, validation and test. The model learns from the training data and is checked on the validation set after each round. If validation performance stops improving and starts to fall, the model has begun memorizing the training data, and training can be stopped. Hyperparameters such as learning rate or the number of layers are also chosen by trying values and comparing validation results. This leaves the test set untouched for the final measurement.

Why does it matter?

If tuning is done on the training data itself, a model that merely memorizes it can still look good. Because a validation set is used again and again for tuning, the model gradually gets fitted to it too. That is why a separate test set is needed for the final, unbiased score.

Example

A team building a spam filter sets aside 10 percent of its emails for validation and checks which combination of settings makes the fewest mistakes on them.

FAQ

What is the difference between a validation set and a test set?

The validation set is used many times during development for tuning and model selection. The test set is kept back for an unbiased final measurement and ideally used only once, at the end.

Can a model be trained without a validation set?

It can, but overfitting is harder to spot and tuning becomes unreliable. When data is scarce, methods such as cross-validation are often used instead of a fixed validation set.

All terms