Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 3, 2021 07:01
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 amankharwal/e1b28fd7024568ce0c28fcc6a2fe3252 to your computer and use it in GitHub Desktop.
Save amankharwal/e1b28fd7024568ce0c28fcc6a2fe3252 to your computer and use it in GitHub Desktop.
# Classification
from sklearn.metrics import accuracy_score
accuracy_score(y_test, y_pred)
# Regression
from sklearn.metrics import mean_absolute_error
mean_absolute_error(y_test,y_pred)
# Clustering
from sklearn.metrics import adjusted_rand_score
adjusted_rand_score(y_test,y_pred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment