Why should roc_auc_score receive predict_proba output rather than hard class labels?
Correct answer
A. AUC needs ranked scores to sweep decision thresholds
15 views
A. AUC needs ranked scores to sweep decision thresholds
15 views
ROC AUC measures how well a model ranks positives above negatives across every possible threshold, so it needs continuous scores; passing 0 and 1 labels collapses the curve to a single operating point. Use predict_proba(X)[:, 1], the probability of the positive class, or decision_function where available. The same reasoning applies to average_precision_score, and it explains why a model with strong AUC can still show poor accuracy at a poorly chosen threshold.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is A? Ask here and get an explanation.