Skip to content

Instantly share code, notes, and snippets.

@josep2
Created January 18, 2017 02:59
Show Gist options
  • Save josep2/d5481380e6fe5ac7cb53f437556e0ed8 to your computer and use it in GitHub Desktop.
Save josep2/d5481380e6fe5ac7cb53f437556e0ed8 to your computer and use it in GitHub Desktop.
from sklearn.linear_model import LinearRegression
lr = LinearRegression()
x = <Some independent data>
y = <Some Dependent data>
lr.fit(x, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment