Epochs
An epoch is one complete pass through the training data. If a model trains for 3 epochs, it has seen the full dataset 3 times.
Run one full pass at a time
Press Run Epoch to send the model through all 5 examples once. Each pass nudges the loss down and the model gets a little more familiar with the patterns.
Model has not seen the data yet.
Seeing the data more than once
A model often needs to see the data more than once. Repeated passes can help it learn patterns better.
Finding the sweet spot
More epochs help, up to a point. Too few and the model barely learns; too many and it starts memorising. There is no single magic number, it depends on the data and model.
- • One epoch means one full pass through the training data.
- • Multiple epochs help the model learn patterns better.
- • Too few epochs may undertrain the model.
- • Too many epochs may cause memorization.
- • Epochs are part of training, not inference.
An epoch tells us how many times the model has gone through the full training dataset. More epochs can help learning, but too many can make the model memorize instead of generalize.