grad_descent.zip
Version 1.0.0.0 (1.82 KB) by
Sarunas Girdenas
Gradient Descent (Batch) Algorithm for OLS
This is the simple implementation of batch gradient descent algorithm for OLS. At the end of the file we use standard OLS in matrix form to check if gradient descent algorithm provided sensible results.
If the algorithm does not converge and gradient descent values are 'too far' from ordinary OLS values, change learning rate, initial guess or other things within the algorithm.
Cite As
Sarunas Girdenas (2024). grad_descent.zip (https://www.mathworks.com/matlabcentral/fileexchange/47339-grad_descent-zip), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Regression in Help Center and MATLAB Answers
Tags
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.0 |