AI GlossaryBatch Size

[Neural Networks]

Batch Size.

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

In-depth explanation

01

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

02
EX. 01

Batch size of 32

EX. 02

Batch size of 128

[NEXT] — APPLY THE CONCEPT

Master Batch Size.

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