Open ankitx55 opened 1 year ago
Thank you for this!
Just added an updated code example in the Scikit-Learn notebook, should be live shortly.
Code:
from sklearn.metrics import RocCurveDisplay
roc_curve_display = RocCurveDisplay.from_estimator(estimator=clf,
X=X_test,
y=y_test)
Before sklearn 1.2:
from sklearn.metrics import plot_roc_curve svc_disp = plot_roc_curve(svc, X_test, y_test) rfc_disp = plot_roc_curve(rfc, X_test, y_test, ax=svcdisp.ax) From sklearn 1.2:
from sklearn.metrics import RocCurveDisplay svc_disp = RocCurveDisplay.from_estimator(svc, X_test, y_test) rfc_disp = RocCurveDisplay.from_estimator(rfc, X_test, y_test, ax=svcdisp.ax)