Predict, measure, nudge, repeat. Write gradient descent that fits a line by itself.
Module 6 · 0/11 done
§ 01
Let the slope do the work
The loss L(w,b) is a landscape over the two parameters. We know how to go downhill on a landscape: compute the gradient, step against it. All we need are the two partial derivatives. Using the chain rule on each squared error (wxi+b−yi)2: