Menu

Calculating the AUC Score

Calculating the AUC Score

The Area Under the Curve (AUC) summarizes the ROC Curve into a single value.

The AUC score ranges from 0 to 1.

AUC Score

Interpretation

1.0

Perfect classifier

0.9 – 0.99

Excellent

0.8 – 0.89

Very Good

0.7 – 0.79

Good

0.6 – 0.69

Fair

Below 0.6

Poor

Code

from sklearn.metrics import roc_auc_score

auc = roc_auc_score(y_test, y_prob)

print("AUC Score:", auc)