Backpropagation and gradient checks
Change parameters and inspect the actual computation behind backpropagation and gradient checks.
0.028Loss
-0.2Analytical gradient
1.276e-10Finite-difference error
ŷ=tanh(wx), target 1, loss (ŷ−1)²/2. The chain rule gives dL/dw=(ŷ−1)(1−ŷ²)x.
Predict the effect of changing a parameter before inspecting the output. Identify the responsible term in the formula and explain how the teaching model differs from a real application.