It repeatedly moves parameters in the opposite direction of the gradient of the loss, scaled by the learning rate.
Batch uses the whole dataset per update: accurate but slow and memory-heavy.
Stochastic (SGD) uses one example per update: fast and noisy, which can help escape poor minima.
Mini-batch uses a small subset per update: the standard compromise between speed and stability.
Loading…