Put the pieces together: a complete gradient-descent loop in pure JAX.
Implement fit_line(x, y, lr, steps) that fits by minimizing the MSE loss, starting from :
jax.value_and_grad on the loss so each iteration gets the loss and both gradients from a single call (differentiate w.r.t. w and b, e.g. with argnums=(0, 1)),steps plain gradient-descent updates with learning rate lr,(w, b, final_loss) as Python floats, where final_loss is the loss at the returned parameters.Inputs: 1-D jnp arrays x, y; float lr; int steps.