Skip to content

Gradient Descent 2D Visualizer built in C using raylib and raygui

Notifications You must be signed in to change notification settings

moalhaddar/gradient-descent-2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradient Descent 2D Visualizer

This project is an educational tool designed to help understand gradient descent in 2D space. It provides a visual representation of the gradient descent algorithm, allowing users to interact with and observe the process in real-time.

Features

  • Interactive 2D visualization of gradient descent
  • Adjustable learning rate
  • Random initialization of target value
  • Continuous learning mode

Building the Project

To build the project, you need to have the following dependencies installed:

  • GCC compiler
  • Raylib library
  • pkg-config

Once you have the dependencies, follow these steps:

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Run the following command:
make

Running the Project

./build/main

Note that you can change the input function in the src/main.c file. It's currently called fx.

Demo

Gradient Descent 2D Visualizer

Gradient Descent 2D Visualizer

Gradient Descent 2D Visualizer

Author

Mohammed Alhaddar

License

This project is licensed under the MIT License.

About

Gradient Descent 2D Visualizer built in C using raylib and raygui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published