AI engineering glossary · Deep learning core

What is batch size?

Batch size (also called Mini-batch size): The number of training examples processed together before the weights are updated. Larger batches give smoother gradient estimates and better hardware use but need more memory, while smaller batches add noise that can help generalisation.

Level: beginnerTopic: Deep learning core

Batch size: an example

Setting batch size to 64 on a dataset of 6,400 samples gives 100 updates per epoch.

Related terms

More Deep learning core terms

Where you learn it

Batch size is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.