Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ratikaewkam/gradientdescent
Develop a simple Gradient Descent algorithm
https://github.com/ratikaewkam/gradientdescent
gradient-descent mathematics python
Last synced: about 23 hours ago
JSON representation
Develop a simple Gradient Descent algorithm
- Host: GitHub
- URL: https://github.com/ratikaewkam/gradientdescent
- Owner: ratikaewkam
- Created: 2024-03-02T18:12:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T16:44:57.000Z (8 months ago)
- Last Synced: 2024-03-11T17:56:55.854Z (8 months ago)
- Topics: gradient-descent, mathematics, python
- Language: Python
- Homepage:
- Size: 9.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gradient Descent
Develop a simple Gradient Descent algorithm![Page1](https://raw.githubusercontent.com/ratikaewkam/GradientDescent/main/document/Page1.png)
![Page2](https://raw.githubusercontent.com/ratikaewkam/GradientDescent/main/document/Page2.png)
### Example 1.1
**f(x) = ((x/7) - 2)^2 + 5**![normal-rate](https://raw.githubusercontent.com/ratikaewkam/GradientDescent/main/gif/normal-rate.gif)
Example of using the Gradient Descent algorithm with a normal learning rate.
### Example 1.2
**f(x) = ((x/7) - 2)^2 + 5**![high-rate](https://raw.githubusercontent.com/ratikaewkam/GradientDescent/main/gif/high-rate.gif)
Example of using the Gradient Descent algorithm with a high learning rate.
### Example 2
**f(x, y) = ((sin 2x)(cos 2y)) / 2**![3D](https://raw.githubusercontent.com/ratikaewkam/GradientDescent/main/gif/3D.gif)
## Installation
Run the following command in the terminal```bash
git clone https://github.com/ratikaewkam/GradientDescent.git
```
```bash
pip install -r requirements.txt
```## Run
Run the following command in the terminal```bash
cd 1
``````bash
python main01.py
```
---```bash
cd 2
``````bash
python main02.py
```Developed by [Rati Kaewkam](https://github.com/ratikaewkam)