← Quiz 0, worked
·
CS7150 class demos
The chain rule
: a nudge relayed down a graph
Quiz 0, question 3(a).
u = wx + b with x and b fixed, z = g(u). Write dz/dw.
A nudge in w passing through u and into z
Three panels: u against w, whose slope is x; z against u, whose slope is g prime; and z against w, whose slope is their product. Underneath, the same computation as a graph: w and x into a multiply node, plus b into an add node, then g, then z, with the forward values written on the edges and the derivative of z with respect to each edge written beneath it, filled in from right to left by backpropagation.
w
0.80
x
2.00
flip x
b
g
sigmoid
tanh
ReLU
square
sin
Step backward
Run all
Reset
forward pass done; nothing propagated yet