Created
March 3, 2019 10:44
-
-
Save roboreport/d2efa86c2e3d234f517b8b5fa41c34a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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