Features someone designed
The topic Gradient boosting ended with the strongest tool of this course for tables: boosted trees, with stacking on top. It also ended at a limit: every model so far takes its features as given. Least squares and logistic regression fit a linear function of them. Kernels fix a nonlinear feature map before they see any data. Trees split on columns that someone prepared.
That works when a column already means something: an income, an age, a count of purchases. It fails for raw signals. Take handwritten digits: an image is 64 pixel brightnesses, and one pixel says almost nothing about the digit. What matters is a pattern across many pixels: a stroke, a loop, a corner. A threshold on one pixel rarely asks a good question. For decades such features of images, sound and text were designed by hand: edge histograms, spectral coefficients, counts of n-grams.
A neural network learns the feature map from the data, together with the linear model on top of it, by the same gradient descent as in the topic Gradient descent. This topic builds networks out of linear models, asks what they can represent, and sets up their outputs and losses. The next topic computes their gradients.
Notation. A network has layers of widths , with . Layer has a weight matrix and a bias . It computes the pre-activation and the activation :
The activation function acts on each coordinate. In this topic is always an activation, not a kernel's feature map. The last layer has no activation: its output is a prediction or a vector of logits.