https://github.com/fabriziomusacchio/gradient_descent
This repository contains the code for the blog post on Understanding gradient descent in machine learning. For further details, please refer to this post.
https://github.com/fabriziomusacchio/gradient_descent
animation gradient-descent machine-learning python simulation
Last synced: about 2 months ago
JSON representation
This repository contains the code for the blog post on Understanding gradient descent in machine learning. For further details, please refer to this post.
- Host: GitHub
- URL: https://github.com/fabriziomusacchio/gradient_descent
- Owner: FabrizioMusacchio
- Created: 2023-07-12T15:59:28.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-12T16:16:05.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T17:25:06.104Z (over 1 year ago)
- Topics: animation, gradient-descent, machine-learning, python, simulation
- Language: Jupyter Notebook
- Homepage: https://www.fabriziomusacchio.com/blog/2023-03-27-gradient_descent/
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gradient Descent
This repository contains the code for the blog post on [Understanding gradient descent in machine learning](https://www.fabriziomusacchio.com/blog/2023-03-27-gradient_descent/). For further details, please refer to this post.
You can run the notebooks in *Google Colab* or *Binder* by clicking on one of the buttons below:
One parameter problem:
[](https://colab.research.google.com/github/FabrizioMusacchio/gradient_descent/blob/master/gradient_descent_demo_1D.ipynb) [](https://mybinder.org/v2/gh/FabrizioMusacchio/Gradient_Descent/HEAD?labpath=gradient_descent_demo_1D.ipynb)
Two parameter problem:
[](https://colab.research.google.com/github/FabrizioMusacchio/gradient_descent/blob/master/gradient_descent_demo_2D.ipynb) [](https://mybinder.org/v2/gh/FabrizioMusacchio/Gradient_Descent/HEAD?labpath=gradient_descent_demo_2D.ipynb)
For reproducibility:
```powershell
conda create -n gradient_descent -y python=3.9
conda activate gradient_descent
conda install -y mamba
mamba install -y ipykernel numpy matplotlib ipywidgets notebook
```
## Acknowledgement
The main code is based on the blog post ["Visualizing the gradient descent method"](https://scipython.com/blog/visualizing-the-gradient-descent-method/) from [*scipython.com*](https://scipython.com).