Glossary

What is Test set?

In Turkish: Test seti · Topic: Data and evaluation

A portion of data that the model never sees during training or tuning, used after development is finished to measure its final performance in an unbiased way.

How does it work?

The data is split at the start and the test set is put aside. The model is trained and tuned using the validation set, and the test set is used only at the very end, ideally once. The result approximates how the model will behave on new data in the real world. If the model is changed after looking at test results, the set loses its neutrality, because the developer unknowingly adapts the model to it. The test data should also reflect real use and contain no copies of the training data.

Why does it matter?

A claim about a model's performance only means something if it is measured on data the model has not seen. Headlines saying a model scored a certain number on a certain test rest on this logic. If the test set leaks into training or is reused over and over, results look better than they really are.

Example

For a medical imaging model, X-rays from different hospitals that were never used in training are set aside as the test set, and the model's final accuracy is reported on them.

FAQ

Is it a problem to use the test set more than once?

Usually yes. If the model is changed after each look at the results, the test set indirectly becomes part of tuning and the score turns optimistic. That is why it is used as sparingly as possible.

How big should a test set be?

There is no fixed rule; with smaller datasets, 10 to 20 percent is common. What matters is that it has enough examples for a reliable result and represents real-world use.

All terms