Skip to content

Instantly share code, notes, and snippets.

@shaurya-blip
Created March 19, 2021 18:03
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 shaurya-blip/34e524d79730d933e02a1eb82f316a7c to your computer and use it in GitHub Desktop.
Save shaurya-blip/34e524d79730d933e02a1eb82f316a7c to your computer and use it in GitHub Desktop.
# 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