Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from sklearn.linear_model import LinearRegression
lm = LinearRegression(fit_intercept=True, normalize=True, n_jobs=None), Y_train)
accuracy = lm.score(X_test, Y_test)
print "Linear Regression test file accuracy:"+str(accuracy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment