Training

Epoch

An epoch is one pass through the training dataset.

b1b2b3b4epoch 1✓✓✓✓epoch 2✓✓··One epoch is one full pass over the training data.
An epoch is one pass through the training dataset. Values shown in the worked visual are illustrative unless the labels state otherwise.

How it works

Epochs are a data-coverage unit, not a fixed amount of compute across datasets. Shuffling changes which examples share a batch on each pass.

A concrete example

Illustrative: 1.2 million examples at batch size 1,200 make 1,000 optimizer steps per epoch.

Do not confuse it with Step

a step is one parameter update; an epoch contains many steps.

Study the full lesson