DEEP LEARNING · WEEK 3

Feedforward networks and backpropagation.

Learn through illustrated explanations, worked examples, practice questions and quick revision.

4 study sections9 lesson illustrations5 question figures2 resources

Before you start

Review matrix multiplication, transposes, vector shapes and the chain rule.

By the end: Trace a forward pass and compute gradients back through a small network.

Check the notation

a: pre-activation; h: activation; W: weight matrix; b: bias vector; L: loss. Check each layer’s shapes before multiplying.

Review Week 2 first →
Start Lesson 1 →

Study sections

Follow the order or choose a section
01

Feedforward Neural Networks — Layers, Notation and Parameters

A feedforward neural network is just many sigmoid-type neurons arranged in layers, where information flows one way : from the input, th…

2 illustrations
02

Output Functions and Loss Functions — Linear, Softmax, Squared Error, Cross-Entropy

What the network should output depends on the question. Predicting a rating (a real number) needs a different last layer and a differen…

3 illustrations
03

Backpropagation — the Idea, and Gradients at the Output Layer

The network made a mistake. Who is to blame? Backpropagation answers this by passing the blame backwards, layer by layer, using the cha…

1 illustrations
04

Backpropagation — Hidden Units, Weights, Biases and the Full Algorithm

We know the gradient at the output: ŷ − e(ℓ). Now we push it down the network. Three short formulas do all the work: one to pass blame…

3 illustrations