Created
November 15, 2018 14:12
-
-
Save massiung/070795cbd8456b5b8d3cdb6f3ec7e0f8 to your computer and use it in GitHub Desktop.
AUC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import roc_auc_score | |
def auc(X, y, classifier): | |
y_score = classifier.predict_proba(X)[:, 1] | |
return roc_auc_score(y, y_score) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment