Skip to content

Instantly share code, notes, and snippets.

@roboreport
Created March 3, 2019 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboreport/d2efa86c2e3d234f517b8b5fa41c34a2 to your computer and use it in GitHub Desktop.
Save roboreport/d2efa86c2e3d234f517b8b5fa41c34a2 to your computer and use it in GitHub Desktop.
from sklearn.linear_model import LinearRegression
lm = LinearRegression(fit_intercept=True, normalize=True, n_jobs=None)
lm.fit(X_train, Y_train)
accuracy = lm.score(X_test, Y_test)
print "Linear Regression test file accuracy:"+str(accuracy)
lm.coef_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment