Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Last active August 30, 2018 16:56
Show Gist options
  • Save WillKoehrsen/28ada9b83b730de17c9e81526a63f9bf to your computer and use it in GitHub Desktop.
Save WillKoehrsen/28ada9b83b730de17c9e81526a63f9bf to your computer and use it in GitHub Desktop.
from sklearn.metrics import roc_auc_score
# Calculate roc auc
roc_value = roc_auc_score(test_labels, rf_probs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment