All courses › Machine Learning and Data Analysis › Gradient descent
Gradient descent
Gradient descent finds the weights that give the smallest loss by taking small steps downhill. The gradient points uphill towards increasing loss, so we go the opposite way. The learning rate decides how long the steps are.
one step
gradient for MSE
Symbols
| learning rate | ||
| loss function | ||
| gradient |
Example
, gradient 4 and :
.
Do not forget the minus sign. We want to go downhill, towards lower loss.
Practise linear regression and gradient descent for free →
← Linear model · Learning rate →
Part of Machine Learning and Data Analysis: Linear regression and gradient descent.