Applied MLby ArxFoundry

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

  1. From logistic regression to a neuronA neuron is logistic regression with a choice of bend. Without the bend, stacking them adds nothing.
  2. Feedforward networksLayers of neurons bend space step by step until a straight cut separates the classes.
  3. BackpropagationThe chain rule run backwards through the network, reusing work, gives every weight its gradient.
  4. The training loop, properlyThe PyTorch template every later lesson uses: batches, forward, loss, backward, step, evaluate, save.
  5. Better steps: momentum and AdamRemember past gradients to speed up, and give each weight its own step size.
  6. Making deep networks trainKeep signals and gradients a sensible size: careful starting weights, normalisation and clipping.
  7. Keeping networks generalDropout, weight decay and early stopping stop a big network memorising its training data.

Level 2·The primitives toolbox

  1. Why a network's shape mattersBuild what you know about the data into the network, and it needs far fewer weights and examples.
  2. Grids and images: convolutionsSlide one small filter over a whole image, so a pattern is found wherever it appears.
  3. Sequences: recurrence and attentionRead in order with a running memory, or let every item look at every other item.
  4. Embeddings and autoencodersLearn a vector for every category, and squeeze inputs through a bottleneck to find compact codes.
  5. Graphs, and choosing a primitiveNetworks for graphs, and a map from the shape of your data to the building block that fits it.

Level 3·Practical engineering

  1. Debugging trainingA checklist for when the loss won't go down, and how to read a loss curve.
  2. Choosing an architectureWhen a network is the right tool, which one, and when to reach for a pretrained model or a tree instead.

Level 4·Exam

  1. Neural-net foundations examTwenty-five multiple-choice questions on the whole course. Check your answers at the end.