In neural network training, what is an epoch?
Show the answer and explanation
Correct answer: C, One complete pass of the training algorithm through every example in the entire training dataset.
Explanation Neural Network Basics
An epoch is one full pass over the entire training set: every training example has been used once to compute gradients. Training usually runs for many epochs, and the data is typically reshuffled between them.
The three terms are easy to mix up:
| term | meaning |
|---|---|
| batch size | number of examples used for one gradient update |
| iteration (step) | one weight update from one batch |
| epoch | one pass over all training examples |
Why the other answers are wrong: a single update from one mini-batch is an iteration; the number of examples per update is the batch size; and evaluating on the validation set is a separate check, often done once per epoch, but it is not what defines an epoch.
Interview tip: link the terms with iterations per epoch ≈ N / batch size, and mention that early stopping is usually decided per epoch from the validation metric.