gradient_descent, a Python code which uses gradient descent to solve a linear least squares (LLS) problem.


The computer code and data files described and made available on this web page are distributed under the MIT license


gradient_descent is available in a MATLAB version and a Python version.

Related Data and Programs:

llsq, a Python code which solves the simple linear least squares (LLS) problem of finding the formula of a straight line y=a*x+b which minimizes the root mean square error to a set of N data points.

Source Code:

Last revised on 28 July 2022.