AIExplainer

What is a batch size?

The number of examples in a batch.

The number of examples in a batch. For instance, if the batch size is 100, then the model processes 100 examples per iteration. The following are popular batch size strategies: - Stochastic Gradient Descent (SGD), in which the batch size is 1. - Full batch, in which the batch size is the number of examples in the entire training set. For instance, if the training set contains a million examples, then the batch size would be a million examples. Full batch is usually an inefficient strategy. - mini-batch in which the batch size is usually between 10 and 1000. Mini-batch is usually the most efficient strategy. See the following for more information: - Production ML systems: Static versus dynamic inference in Machine Learning Crash Course. - Deep Learning Tuning Playbook.

Practitioners refer to batch size when building, training, or evaluating machine learning systems. It appears in research papers, product documentation, and technical discussions about AI capabilities and limitations.