GUI that perform linear regression using gradient descent

版本 1.1.0 (111.5 KB) 作者: Fabricio Castro
This GUI is for didactics purpose, and it provides a way to visualize how linear regression works as well as what parameters are envolved.
38.0 次下载
更新时间 2021/11/25
This GUI was designed to aid college professors to teach how linear regression with gradient descent works in practice.
*GUI features;
This GUI enables the user to generate scattered points randomly with linear behavior and use the gradient descent algorithm to fit iteratively a line to the generated data.
The process of generate the data can be done in two ways: by user clicking over the top graph, or automatically using the rand built in function of matlab. In the last way a buffer parameter can be set by the user to control how spread the points are. Increasing the value of this parameter will result the need to change the learning rates or the number of iterations as well, in order to fit the line properly.
Once the user provided the data, a initial line can be generated whose angular and linear coeficients will be used as a starting point by the gradient descent algorithm. Parameters related to the gradient descent approach, like, number of iterations, and learning rates can be set by the user in order to perform the curve fitting efficiently.
When the user click over the "optimize line" button the linear regression is done, and both loss function graphs and parameters table are updated/feeded in each iteration.
Obs.: Be aware that providing small learning rate will slow the process of fitting with resonable loss value. And big learning rates will make gradient descent perform big jumps disabling it to converge to the loss function minima which will mess up the fitting process too.

引用格式

Fabricio Castro (2024). GUI that perform linear regression using gradient descent (https://github.com/fcastro25/Linear-regression-using-gradient-descent/releases/tag/1.1.0), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容 R2018a 到 R2021b 的版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0

See release notes for this release on GitHub: https://github.com/fcastro25/Linear-regression-using-gradient-descent/releases/tag/1.1.0

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库