LinearRegression Code for Linear Regression Tutorial on my website (http://aceinthedeck.com/blog/machine-learning/linear-regression-in-python-part-1/) The code consists of two files: Ipython Notebook .py file in case you don't want to use the ipython notebook