AI Glossary/Batch Size
Neural Networks

Batch Size

The number of training examples used in one iteration of model training.

In-depth explanation

Instead of updating weights after each example (stochastic) or after all examples (batch), mini-batch gradient descent updates after a fixed number of examples. Larger batches provide more stable gradients but require more memory; smaller batches add noise but can help escape local minima. Common sizes range from 16 to 256.

Examples

Batch size of 32
Batch size of 128

Master Batch Size.

Learn how to apply this concept with hands-on projects in our comprehensive AI programs.