Natural Language Processing · free preview
Backpropagation and Training
Computation graphs, the chain rule run backwards, activation derivatives, cross-entropy at the output, gradient checking, and a trained XOR network.
1. Backpropagation and Training
Backpropagation and Training
2. Backprop for a two-layer network
Backprop for a two-layer network
3. Backward differentiation in NumPy
Backward differentiation in NumPy
4. One backward step
On the graph , , with values , , , compute by the chain rule. Answer as a decimal.
5. Sigmoid derivative at a point
Compute at , using , and round to three decimals.
6. Through the ReLU gate
The output error is , the output weight feeding hidden unit 1 is , and that hidden unit received pre-activation . Compute as a decimal.
7. The error at the output
For a sigmoid output unit with cross-entropy loss, what is the error signal at the output logit, and why is it so clean?
8. Certifying the backward pass
A hand-written backward pass produces analytic gradients. Which procedure validates them, and what outcome should it produce?
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free