ROC curve and AUC

The ROC curve plots the true positive rate against the false positive rate for all possible thresholds. The AUC, the area under this curve, is 0.5 for a random ranking and 1 for a perfect ranking. It measures the ability to separate the classes independently of the threshold.

Example

roc_auc_score(y_test, proba)

Related concepts

The whole glossary