Gradient Descent for Linear Curve Fitting
The Data X and Y should be column vectors. The file Gradient_Descent needs to be run to get the optimal parameters and the plots associated. The user needs to enter the values of X and Y in the space provided. All files need to be in the same folder for the program to run smoothly. The function file grad_desc calculates the optimal parameter values.
Cite As
SObhan Chatterjee (2024). Gradient Descent for Linear Curve Fitting (https://www.mathworks.com/matlabcentral/fileexchange/69643-gradient-descent-for-linear-curve-fitting), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Linear Gradient Descent from lectures of Andrew Ng
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |