← All tools
EDTOOLKITS GUIDES

Count updates separately from passes through data

By Team Edtoolkits · AI learning

Use batch size and epochs to explain why two training runs may perform different amounts of work.

Use the guide alongside the working tool.

Open Epochs, Batches and Steps →

Explore the lesson

Watch a dataset dealt out in batches, round after round.

Pick batch size and epochs, step through, and compare the loss curves.

Flip the memory card and answer the quick check.

A comparison to try

Use 108 examples and a batch size of 24. There are five updates per epoch, including a final batch of twelve; three epochs give fifteen updates. Inspect the dealt batches before comparing loss curves.

Read the result

An epoch is a pass through the dataset, while an update is a parameter change after a batch. Increasing batch size reduces update count for the same number of epochs, so equal epochs need not mean equal optimization steps.

A mistake to avoid

The loss curve comes from a small line-fitting task. Step counts do not predict wall-clock time, memory use or learning quality across different hardware and models, and the final partial batch still counts.

Teaching model and privacy

The loss curve comes from training a straight line on noisy dots in your browser, a simple stand-in for a real model. Step counts follow the exact rule real training uses. Everything runs in your browser.

Ready to apply this workflow?

Try Epochs, Batches and Steps →

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE