Skip to content

Yc3t/Gradient-descent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradient Descent Simulator

This project provides a visual simulation of the gradient descent algorithm for linear regression. It includes both Python and MATLAB implementations.

Files

  • computeCost.m: MATLAB function to compute the cost for linear regression.
  • gradientDescent.m: MATLAB function to perform gradient descent on the input data.
  • testgradient.m: MATLAB script to test the gradient descent function with some example data.
  • testgradient2.m: MATLAB script to visualize the cost function and the path of gradient descent.
  • gradescent.py: Python/Dash app to visualize the gradient descent algorithm.

Usage

MATLAB

Run the testgradient.m or testgradient2.m scripts in MATLAB.

Python

Run the gradescent.py script. This will start a Dash app that you can view in your web browser.

Requirements

  • MATLAB for the MATLAB scripts.
  • Python 3 and the following Python libraries for the Python script:
    • numpy
    • dash
    • plotly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published