Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 744 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 744 Bytes

Gradient Descent Example with Animations

This project presents some animations demonstrating gradient descent algorithm for different scenarios.

Execution

Required packages are numpy and matplotlib. Written in python 3.

Example: python gradient_descent_1d.py

Examples

1 - Finding Minimum Value of a Parabola (gradient_descent_1d.py)

2 - Gradient Descent Converges to a Local Minimum (gradient_descent_local_minima.py)

3 - Gradient Descent on 2D Function (gradient_descent_2d.py)

Function is taken from https://en.wikipedia.org/wiki/Gradient_descent#Examples