# Epoch

- **Canonical URL:** https://getaimath.com/dictionary/epoch/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Epoch?

**In one sentence:** An epoch is one full pass through the entire training dataset.

If your dataset has 10,000 examples, one epoch means the model has looked at all 10,000 once. Models usually train for several epochs, seeing the same examples again and again, like rereading a textbook. Too few epochs and the model has not learned enough; too many and it may start to memorize.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

### Quick Math / Rule of Thumb

Steps per Epoch = Training Examples ÷ Effective Batch Size. Large LLMs usually see most of their trillions of training tokens only about once, though some high-quality data may be repeated a few times.

## What is an example of Epoch?

Training a model for 5 epochs means it studied the whole dataset 5 times.

## Why does Epoch matter?

Counting epochs helps people control how long a model trains and avoid overfitting.

## Related Concepts

- [Hyperparameters](https://getaimath.com/dictionary/hyperparameters/): Hyperparameters are the settings people choose before training starts, which control how the model learns.
- [Batch](https://getaimath.com/dictionary/batch/): A batch is a small group of training examples that the model looks at together before updating its numbers.
- [Parameters](https://getaimath.com/dictionary/parameters/): Parameters are all the numbers a model learns during training, mainly its weights and biases.
- [Batch Size](https://getaimath.com/dictionary/batch-size/): Batch size is how many examples go into each batch during training.
- [Bias](https://getaimath.com/dictionary/bias/): "Bias" has two meanings in AI: a small extra number inside each neuron, and unfair patterns a model picks up from its data.
- [Learning Rate](https://getaimath.com/dictionary/learning-rate/): The learning rate controls how big each step is when a model updates its numbers during training.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/epoch/)
