A bakery tracks how many trays of bread it bakes (xs) and how many loaves it sells (ys). You want the straight line that fits them, and you will find it the way the lesson did: by walking downhill.
Write fit_line_by_descent(xs, ys, rate, steps).
w = 0 and b = 0.w * x + b - y for every point, using the current w and b.grad_w is the mean of 2 * x * error, and grad_b is the mean of 2 * error.w = w - rate * grad_w and b = b - rate * grad_b.steps times. If steps is 0, nothing moves.Return [w, b], each rounded to 3 decimal places, as plain Python floats.