Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created December 29, 2021 18:20
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 letthedataconfess/7d36b7a2a39dacce939eb234352953ba to your computer and use it in GitHub Desktop.
Save letthedataconfess/7d36b7a2a39dacce939eb234352953ba to your computer and use it in GitHub Desktop.
from sklearn.metrics import roc_curve, auc
false_positive_rate, true_positive_rate, thresholds = roc_curve(y_test, pred_y)
roc_auc = auc(false_positive_rate, true_positive_rate)
roc_auc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment