Examples, Batches, and Training Epochs
A batch groups examples for one update under the training loop. An epoch commonly refers to one complete pass over a training set.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace an uneven split
With ten examples and batch size four, a pass can contain groups of four, four, and two when the tail is used. Dropping the tail changes which examples contribute. See batch boundaries.
Keep comparisons fair
Increasing batch size changes update count per epoch in a standard loop. Report both units when comparing training runs. Mini-batch gradients explain variation in the updates.[1]