# Batch

- **Canonical URL:** https://getaimath.com/dictionary/batch/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Batch?

**In one sentence:** A batch is a small group of training examples that the model looks at together before updating its numbers.

Datasets are often too big to process all at once, so they are split into batches. The model studies one batch, works out its average mistake, adjusts its weights, then moves on to the next batch. It is like grading homework in small piles instead of one giant stack.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Batch?

A dataset of 10,000 photos might be split into batches of 100, giving 100 updates per epoch.

## Why does Batch matter?

Batches make training fit in computer memory and run efficiently on GPUs.

## Related Concepts

- [Epoch](https://getaimath.com/dictionary/epoch/): An epoch is one full pass through the entire training dataset.
- [Batch Size](https://getaimath.com/dictionary/batch-size/): Batch size is how many examples go into each batch during training.
- [Hyperparameters](https://getaimath.com/dictionary/hyperparameters/): Hyperparameters are the settings people choose before training starts, which control how the model learns.
- [Learning Rate](https://getaimath.com/dictionary/learning-rate/): The learning rate controls how big each step is when a model updates its numbers during training.
- [Parameters](https://getaimath.com/dictionary/parameters/): Parameters are all the numbers a model learns during training, mainly its weights and biases.
- [Accuracy](https://getaimath.com/dictionary/accuracy/): Accuracy is the share of answers a model gets right, out of all the answers it gives.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/batch/)
