Gradient descent
An optimisation method that repeatedly steps the parameters in the direction that lowers the loss most steeply.
The gradient points uphill on the loss surface, so gradient descent moves the other way:
The learning rate sets the step size. Stochastic and mini-batch gradient descent estimate the gradient from a few examples at a time, which is much cheaper on large datasets. Momentum and Adam speed it up and smooth it out. It trains almost everything, from logistic regression to deep networks and policy-gradient agents.
See it in action
- Gradient descent and its variantsThe optimiser behind most of machine learning: learning rates, momentum, SGD, mini-batches and Adam.
- Linear regressionFit the straight line (or hyperplane) that predicts a number with the least squared error.
- Logistic regressionThe workhorse classifier: a linear score turned into a calibrated probability by the sigmoid.
- Neural networks and backpropagationMulti-layer perceptrons: learned features, activations, the chain rule, and training tricks.