When a neural network makes a prediction, its loss measures how far that prediction is from the label. The gradient is the vector of derivatives showing how that loss changes with each weight and bias. Training takes a small step opposite to the gradient to reduce the loss. section 10.2
In backpropagation, the gradient is used in a repeated training loop:
- Calculate the loss and its gradient. section 10.2
- Take a small step opposite to the gradient, then repeat to decrease the loss. section 10.2
The derivatives are calculated for many weights and biases, making the loss function complicated. Detailed backpropagation mathematics is deferred; Keras, TensorFlow, and PyTorch implement the algorithm in practice. section 10.2



















