How does Gradient Descent work
Short answer
It calculates the slope, or gradient, of the loss function with respect to each weight, then updates the weights slightly in the opposite direction of that slope to reduce error.
Advertisement
AModel answer
It calculates the slope, or gradient, of the loss function with respect to each weight, then updates the weights slightly in the opposite direction of that slope to reduce error.
Real-world example
Gradient descent slowly nudges a model's weights closer to the values that produce the most accurate predictions over many training steps.
Likely follow-ups
- What is Neural Networks, How is Gradient Descent evaluated in practice, What tools are commonly used for Gradient Descent
Related topics