Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)