Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Test set

Also: test data, held-out set

In plain words

Examples held back from training so you can check how the model does on things it has not seen.

The fuller definition

A test set contains examples held apart from model fitting or prompt development to estimate performance on unseen material.

The training loop, simplified
  1. ExamplesInputs paired with the expected output.
  2. PredictionThe model produces an output.
  3. LossHow far off it was, as a number.
  4. UpdateParameters nudged to reduce the loss; repeat.

Training ends at the knowledge cutoff. Whatever the examples contained, including their gaps and biases, is what the model learned.

A concrete example

After tuning a chronology prompt on five records, assess it on separate records with similar difficulty.

The distinction that matters

Repeatedly revising against the same test answers turns that set into development material.

Related terms

Where it is taught

How models learn from examples

Source and further reading

Hugging Face · LLM course

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC