/linear-regression

Linear regression algorithm that converges using gradient descent built-in Python with Numpy module.

Primary LanguagePythonMIT LicenseMIT

linear-regression

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.

Getting Started

demo.py gives you an insight to use the module LinearRegression, you can use it to make and fit your models

Prerequisites

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.

Installing

  1. 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

Run demo.py

python demo.py

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details