Learning From a Few Records at a Time

Botie has more training records than he can process in one step. A batch gives him a manageable estimate of the direction in which to change the model.

13 sections · 4 questions · 2 coding challenges

1 / 13

Trading an Exact Gradient for a Useful Estimate

BOTIE

Stochastic optimisation addresses objectives built from many observations by using sampled contributions. Minibatches also make useful work for matrix-oriented hardware without requiring the whole dataset in memory.

This lesson isolates the gradient of a mean squared-error objective with a one-half factor. Our tiny batches make every contribution visible; the same averaging principle applies to gradients obtained through backpropagation.

Sources for this history