AI GLOSSARY · AI CONCEPTS

Epoch (machine learning)

Markdown version

Definition

In machine learning, an epoch is one full pass over the training set, so that each example has been processed once. Training usually takes many epochs, and the number of epochs is a hyperparameter set before training begins.

Also called: epoch in machine learning, epochs, epochs deep learning, what is an epoch, training epoch.

In plain language

An epoch is one complete read-through of the study material. If a model trains on 1,000 examples, one epoch means every one of those 1,000 examples has been processed once. Google's course notes that training often takes many epochs, and that the number of epochs is a setting you choose before training starts. More epochs take more training time and do not guarantee better predictions on new data; validation performance and early stopping help detect overfitting.

Technical definition

Google's Machine Learning Crash Course states that during training, an epoch means the model has processed every example in the training set once. With a training set of 1,000 examples and a mini-batch size of 100, it takes 10 iterations to complete one epoch. The course calls the number of epochs a hyperparameter you set before training begins. Keras Model.fit defines an epoch as an iteration over the entire x and y data provided, unless steps_per_epoch is set, and notes that with initial_epoch the epochs argument means the final epoch index.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    It checks train, validation and test files for duplicates, shared groups, time and label leakage; prints JSON.
    Why it exercises the concept
    An epoch is a pass over the training set, so the training files are read many times; this skill checks them for leakage.

How it shows up when you use agents

If you ask a coding agent to train or fine-tune a model, the code it writes may include an epochs argument, as in Keras Model.fit, where epochs is the number of epochs to train the model. The number of epochs is a hyperparameter.

Keras can evaluate validation data at the end of each epoch. Google's glossary describes overfitting as a model matching the training data so closely that it fails to predict well on new data, and early stopping as ending training when the loss on a validation dataset starts to increase.

Google's glossary says one epoch represents N divided by the batch size training iterations, where N is the number of examples. With 1,000 examples, a batch size of 50 gives 20 iterations per epoch.

Common confusions

  • Epoch versus batch. Google's glossary says the batch size determines the number of examples in a batch, and relates a batch to an epoch through the iteration count.
  • Epoch versus iteration. With 1,000 examples and a mini-batch size of 100, the Google course says it takes 10 iterations to complete one epoch.
  • Epoch versus steps per epoch. In Keras, setting steps_per_epoch to something other than None changes what counts as an epoch, so it may not cover the entire data.

Terms that mention Epoch (machine learning)

7 terms mention this one

More in AI concepts

Next steps

  1. split-leakage-check A skill that exercises it.
  2. Hyperparameter Related term.
  3. Batch size Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude and Codex (automated drafting); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (7)
  • : US Google Ads query estimate aligned to cached receipt; close variants may overlap and no traffic is promised.
  • : Independent automated factual and example-source review completed; exact-version technical and demand checks recorded separately. Publication remains disabled.
  • : Codex scope correction after independent source review; peer acceptance pending, not indexable.
  • : First version.
  • : Verifier pass: corrected claims against sources.
  • : Stage-3 accuracy pass: narrowed claims to Google MLCC, Google glossary and Keras text; added the glossary source; removed unsourced advice, cost claims and two weak examples.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.