Skip to content

Foundations

Linear regression and gradient descent

Gradient descent makes a loss small by repeated steps against its gradient. This topic fits linear models with many features, by least squares and by descent, speeds the steps up with small random batches, and draws curves with transformed features.

Lessons on this topic

Intermediate · 30 minYou are hereRead

Gradient descent

Make a loss small by stepping against its gradient, and see the learning rate decide whether the steps crawl, glide, zig-zag or fly off.

Intermediate · 35 minYou are hereRead

Linear regression with many features

Predict with a weighted sum of features, and find the weights by least squares in one step or by gradient descent on the same bowl, with the same answer.

Phasorium

Account

Sign inKeep your place on any device

Subjects

Site

Look