# Test set

Data reserved to examine a trained model without informing the choices preceding that evaluation.

Canonical URL: https://thecompanybrain.com.br/en/glossary/test-set
Authors: Luiz Gardelin
Updated: 2026-11-15T00:51:30.473Z

A test set is a portion of data reserved for examining a trained model. In the arrangement described by Google, it is separate from examples used for [training](/en/glossary/model-training) and validation, enabling a check after development choices. The purpose of this reservation is to assess behavior on examples that did not inform those choices, rather than simply repeat a demonstration the team has already learned to improve. [Source: Google](https://developers.google.com/machine-learning/glossary).

The word test needs an explanation of the procedure. In some settings, datasets used for evaluation have different names. State whether the data remained reserved, who consulted the results and when. A filename does not establish independence; the history of use makes the reservation meaningful. Preserve that history when reporting results or handing the project to a different team.

## A result has a scope

Google's course emphasizes examples without training duplicates and data suitable for what the model will encounter in its intended use. It also explains that validation and test sets may lose their usefulness as independent checks when their results repeatedly guide adjustments. There is no mandatory split percentage that applies to every project. [Source: Google, dividing data](https://developers.google.com/machine-learning/crash-course/overfitting/dividing-datasets).

For organizational use, record the model version, [dataset](/en/glossary/dataset), criteria and execution conditions. Ask whether examples represent the current process and which important situations were not examined. Good performance on that subset does not establish suitability for every population, document or period. [Evaluation dataset](https://thecompanybrain.com.br/en/glossary/evaluation-dataset) is a broader expression; it means a reserved test set only when the project assigns it that role.

## Hypothetical example

A team tests a message classifier after selecting its configuration with [validation](https://thecompanybrain.com.br/en/glossary/validation-set) data. The reserved test contains authorized requests from several departments. While reviewing results, the team notices that requests from a newly created branch are absent. It limits its conclusions and plans to investigate the gap. If it changes the model in response to errors it finds, it does not present another run on the same set as though it were the first independent evaluation.

## Sources

- [Machine Learning Glossary](https://developers.google.com/machine-learning/glossary): Technical definitions of data, datasets, evaluation, tokens and bias in machine learning.
- [Datasets: Dividing the original dataset](https://developers.google.com/machine-learning/crash-course/overfitting/dividing-datasets): The lesson presents a training, validation and test split and discusses duplicates and repeated use of datasets.

## Related reading

- [Training set](/en/glossary/training-set)
- [Validation set](/en/glossary/validation-set)
- [Evaluation dataset](/en/glossary/evaluation-dataset)
- [What is an LLM: how large language models work and where companies use them](/en/guides/what-is-an-llm)
- [AI audio generation](/en/glossary/ai-audio-generation)
- [AI hallucination](/en/glossary/ai-hallucination)
