Gradient descent is an algorithm for finding values of parameters w and b that minimize the cost function J.
where, parameters , are updated simultaneously. is the learning rate.
-
Gradient:
-
Learning Rate: How small changes are.
-
Convex Function: Bowl shape
Learning Rate
- Draw a graph of the cost function to see
- if it converge (done)
- if it has some up and down (bad learning rate)
Stochastic Gradient Descent
Stochastic Gradient Descent (SGD) is an optimization algorithm commonly used in machine learning and deep learning for minimizing the loss function. It is a variation of the standard Gradient Descent algorithm that uses only a single or a small random subset of the data (mini-batch) to compute the gradient at each step.
