O'Reilly logo
  • Som DUBEY thinks this is interesting:

>>> fpr, tpr, thresholds = roc_curve(y_test, y_pred)

From

Cover of Mastering Python for Data Science

Note

from sklearn.metrics import roc_curve, roc_auc_score, auc