Gradient descent
A model improves by nudging each parameter a small step in the direction that lowers its error.
Example: One update step
- Input
- weight = 2.0, gradient of loss = 0.5, learning rate = 0.1
- Result
- new weight = 2.0 − 0.1 × 0.5 = 1.95. The step goes against the gradient, so the loss falls.