Skip to content

Instantly share code, notes, and snippets.

@charanhu
Created August 11, 2022 06:12
Show Gist options
  • Save charanhu/75c5b6bee156df9f180caefdbc77a099 to your computer and use it in GitHub Desktop.
Save charanhu/75c5b6bee156df9f180caefdbc77a099 to your computer and use it in GitHub Desktop.
# predictio on the training data
training_data_prediction= regressor.predict(X_train)
# R squared value
r2_train=metrics.r2_score(Y_train, training_data_prediction)
print('R squared value: ', r2_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment