ChienKangLu / Gradient-Descent

AI course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradient-Descent

Gradient-Descent is an algorithm used to find the the minimum of a function. An arbitrary point will move along with opposite direction according to negative of derivative until it arrive to the minimum position.

Step

  1. Choose an arbitrary point (blue point)
  2. Calculate the derivative of function on this point
  3. Calculate the gradient by negative of derivative and a very small learning rate
  4. Move to a new point according to the gradient
  5. It will arrive to the minimum position (red point) until maximum iteration or very small change

Example

image

About

AI course


Languages

Language:Python 100.0%