Skip to content

Gradient Descent

A fundamental algorithm for training neural networks. The model calculates the gradient — the direction in which the error increases the most — and moves the weights in the opposite direction.

Idea in Two Words

1. Calculate the error on the current weights.
2. Calculate the gradient (where the error increases).
3. Shift the weights in the opposite direction.
4. Repeat until the error stops decreasing.

Parameters

  • learning rate — the size of the step;
  • batch size — how many examples per step;
  • number of epochs — how many passes through the data.

See Also

← All Terms