AUC ROC Changing after Calibration #31044
Replies: 1 comment
|
This is not necessarily a bug. Calibration optimizes probability quality, not ROC AUC, and it does not promise to preserve every sample's ranking. With isotonic calibration, ties and local reorderings are normal. A single sigmoid applied to one fixed score is monotonic and should preserve ranking, but To diagnose it, evaluate on a test set used for neither training nor calibration and compare: roc_auc_score(y_test, clf.decision_function(X_test))
roc_auc_score(y_test, calibrated.predict_proba(X_test)[:, 1])If the goal is to calibrate one already-fitted model while changing its ranking as little as possible, fit that model on the training split and calibrate it on a separate split using |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I am trying to fit a binary classifier and AUC_ROC value is changing post calibration(both Sigmoid and Isotonic).
calibrated_clf = CalibratedClassifierCV(clf, cv=3, method='sigmoid')
calibrated_clf.fit(X_train, y_train)
Please guide.
All reactions