Gradient
Pointer to where to move the weights to reduce error. This is the foundation of the entire training process of neural networks.
How it works
- The model makes a prediction and compares it to the correct answer.
- The error (loss) is calculated — a single number.
- The gradient shows how to change each weight to reduce the error.
- The weights are updated in the direction of the negative gradient.
This is called gradient descent.
Gradient and Step Size
The gradient sets the direction, while the size of the step is determined by the learning rate. A step that is too large — the model 'jumps over' the minimum; a step that is too small — the model learns forever.
Backpropagation
The mechanism that calculates gradients for all layers of the network from output to input (backpropagation). This is what makes deep network training possible.