Created
March 19, 2021 18:03
-
-
Save svalordev/34e524d79730d933e02a1eb82f316a7c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Coefficients | |
print('Coefficients: \n', regressor.coef_) | |
# The mean squared error | |
print("Mean squared error: %.2f" % np.mean((regressor.predict(X_test) - y_test) ** 2)) | |
# Explained variance score: 1 is perfect prediction | |
print('Variance score: %.2f' % regressor.score(X_test, y_test)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment