Skip to content

Instantly share code, notes, and snippets.

@charanhu
Created August 11, 2022 06:13
Show Gist options
  • Save charanhu/dcf617d46d295fe228f650f1e410b744 to your computer and use it in GitHub Desktop.
Save charanhu/dcf617d46d295fe228f650f1e410b744 to your computer and use it in GitHub Desktop.
# prediction on the test data
test_data_prediction= regressor.predict(X_test)
r2_test=metrics.r2_score(Y_test, test_data_prediction)
print('R squared value: ', r2_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment