Git Product home page Git Product logo

gradientdescent_visualization's Introduction

Looking for Contributors

This is open source and open for everyone

  • Actively looking for contributors to help improve this project. If you are interested in contributing, please reach out to me [Linkedin] : (https://www.linkedin.com/in/umamaheswar-e-innovator/) . I are particularly interested in contributions that can help add web visualization, including 3D gradient visualization and 3D animation.

Gradient Descent Visualization

This repository contains a Python application that visualizes the gradient descent algorithm for various optimization problems. The app allows users to:

  • Select different optimization algorithms (Gradient Descent, Momentum, Adagrad, RMSprop, Adam)

  • Adjust the learning rate, momentum, and other parameters

  • Visualize the cost function surface

  • See the trajectory of the optimization process

  • Add gradient arrows, adjusted gradient arrows, momentum arrows, and the sum of squared gradients

  • First , Create virtual environemnt on your local machine

python -m venv/env-name
  • Now activate virtual environment
source env-name/bin/activate

Installation

  1. Clone this repository:
git clone https://github.com/Skyrider3/GradientDescent_Visualization.git
  1. Install the required dependencies:
pip install -r requirements.txt

Usage

  1. Run the application:
python gradient_descent_app.py
  1. A window will appear with a sidebar and a plot area.
  2. Use the sliders and checkboxes in the sidebar to adjust the parameters and options.
  3. The plot area will show the cost function surface, the optimization trajectory, and any selected visualization elements.

Features

  • Multiple optimization algorithms: Choose from Gradient Descent, Momentum, Adagrad, RMSprop, and Adam.
  • Adjustable parameters: Modify the learning rate, momentum, decay rate, beta1, beta2, and other parameters.
  • Interactive visualization: See the cost function surface, the optimization trajectory, and various visualization elements.
  • Gradient arrows: Visualize the gradient at each point in the trajectory.
  • Adjusted gradient arrows: See the adjusted gradient for algorithms like Momentum, RMSprop, and Adam.
  • Momentum arrows: Visualize the momentum vector in the Momentum algorithm.
  • Sum of squared gradients: See the sum of squared gradients for each point in the trajectory.
  • Path: See the path taken by the optimization process.

Visual

alt text

Contributing

Contributions are welcome! Please see the contribution guidelines for more information.

License

This project is licensed under the MIT License. See the LICENSE file for details.

gradientdescent_visualization's People

Contributors

skyrider3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.