AI ATLASAn interactive field guide
CONCEPT 36 / Neural networks / Interactive study

Mini-batches and stochastic training.

Use the same starting weights with different batch sizes. See how noisy updates arise from the examples in each batch.

Twelve points and a fitted line

Begin with the loaded example. Change one control and watch the diagram and numbers update together.

36 / LIVE LABORATORYLoaded example
All calculations shown here run in the browser from the visible controls and bundled examples.

Inside the calculation

Why it matters

Batch size changes the gradient estimate and update cadence.

All calculations shown here run in the browser from the visible controls and bundled examples.