Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Dataset

Also: datasets, training data

In plain words

A collection of examples used to train or test a model.

The fuller definition

A dataset is an organized collection of examples used for tasks such as training, testing, or analysis. Its contents and selection determine what conclusions it can support.

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

A labelled set of fictional emails is used to test whether a model distinguishes proposals from agreements.

The distinction that matters

A large dataset can still be unrepresentative, duplicated, or incorrectly labelled.

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