Notes [#7]
Derivative
A derivative measures how fast one quantity changes when another changes a little. In training, it tells each parameter which direction lowers the loss.
loss(w) = (w − 2)²
derivative = 2 × (w − 2)
at w = 3 → derivative = 2 → decrease w
at w = 1 → derivative = −2 → increase w
Figure 13 — The sign of the derivative says which way to step; its size says how steep the slope is.