2. Which way is downhill?
The loss is a surface over (w, b): the right panel of the lab draws it. In 3D the height is not the loss itself but a smaller number made from it: more loss is still higher, but the big values are made much smaller, so the low ground stays visible. (For the curious: the height is , and ln is on the math page.) To lower the loss, you need to know: if you make w a little bigger, does the loss go up or down, and how fast? That rate is the gradient. In plain words: how much L changes for each tiny step of w. It is written and read “the partial derivative of L with respect to w”. “Partial” means only w moves and everything else stays fixed. is the same with only b moving. For a function with only one input, the slope has a short name: , read “f prime of x”. It is the slope of at . (New to derivatives? The math page shows one with numbers.) For this loss the two gradients are:
Compute it on paper. Once you answer, the table under the lab shows every term so you can check.