The gradient is the vector of partial derivatives of a function with respect to each input; it points in the direction of steepest increase and is perpendicular to the level curves.
Gradient descent minimizes a loss by stepping against the gradient: theta_new = theta_old - alpha x gradient of the loss, where alpha is the learning rate.
Too large an alpha overshoots or diverges; too small converges slowly. For a smooth function, convergence needs alpha below about 2 divided by the Lipschitz constant of the gradient.
Stochastic and mini-batch variants estimate the gradient from a subset of the data.
Loading…