Linear regression algorithm that converges using gradient descent built-in Python with Numpy module.
The LinearRegression module allows you to create a linear regression model with just or multiple features.
demo.py gives you an insight to use the module LinearRegression, you can use it to make and fit your models
LinearRegression uses Python 2.7 and the packages below
- numpy 1.12.1
- matplotlib 2.1.1
You can install this packages using pip
python -m pip install --user numpy matplotlib
visit https://scipy.org/install.html for more information about install the packages.
- Clone this repository into a directory of your choice.
git clone https://github.com/lechugalf/simple-linear-regression.git
If you are not familiar with Git and GitHub, you can simply download the zip file of the repository at the top of the main repository page.
Then, move to the directory created by the clone/zip file:
cd linear-regression
python demo.py
- Alfonso Lechuga - Initial work - lechugalf
This project is licensed under the MIT License - see the LICENSE.md file for details