promptdojo_

The training and prediction loop — step 4 of 7

Complete the training loop: the gradient of squared error with respect to w, and the downhill update.