Learning from data
Neural-net foundations
Build a network from one neuron, train it properly and debug it. Then a tour of the other building blocks: convolutions, recurrence, attention, embeddings, autoencoders and graphs.
Start course 15 lessons · 4 levels
Level 1·Building networks
- From logistic regression to a neuronA neuron is logistic regression with a choice of bend. Without the bend, stacking them adds nothing.
- Feedforward networksLayers of neurons bend space step by step until a straight cut separates the classes.
- BackpropagationThe chain rule run backwards through the network, reusing work, gives every weight its gradient.
- The training loop, properlyThe PyTorch template every later lesson uses: batches, forward, loss, backward, step, evaluate, save.
- Better steps: momentum and AdamRemember past gradients to speed up, and give each weight its own step size.
- Making deep networks trainKeep signals and gradients a sensible size: careful starting weights, normalisation and clipping.
- Keeping networks generalDropout, weight decay and early stopping stop a big network memorising its training data.
Level 2·The primitives toolbox
- Why a network's shape mattersBuild what you know about the data into the network, and it needs far fewer weights and examples.
- Grids and images: convolutionsSlide one small filter over a whole image, so a pattern is found wherever it appears.
- Sequences: recurrence and attentionRead in order with a running memory, or let every item look at every other item.
- Embeddings and autoencodersLearn a vector for every category, and squeeze inputs through a bottleneck to find compact codes.
- Graphs, and choosing a primitiveNetworks for graphs, and a map from the shape of your data to the building block that fits it.