samanyougarg / Linear-Regression

Linear Regression using python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linear Regression

##Overview This is the code for this video by Siraj Raval on Youtube. The goal is to predict an animal's body weight given it's brain weight. The model we'll be using is called Linear Regression. The dataset we're using to train our model is a list of brain weight and body weight measurements from a bunch of animals. We'll fit our line to the data using the scikit learn machine learning library, then plot our graph using matplotlib.

##Dependencies

  • pandas
  • scikit-learn
  • matplotlib

You can just run pip install -r requirements.txt in terminal to install the necessary dependencies. Here is a link to pip if you don't already have it.

##Usage

Type python regression.py into terminal and you'll see the scatter plot and line of best fit appear.

About

Linear Regression using python

License:Apache License 2.0


Languages

Language:Python 100.0%