dy = y_pred - y_true.reshape(-1, 1) grads = self.model.backward(dy, caches, clip_value=clip_value) self.model.update_params(grads, self.learning_rate)