Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_roc_curve has been removed in version 1.2. From 1.2, use RocCurveDisplay #120

Open
patriciasbar opened this issue Feb 23, 2025 · 0 comments

Comments

@patriciasbar
Copy link

As per: https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_0_22_0.html :

plot_roc_curve has been removed in version 1.2. From 1.2, use RocCurveDisplay instead.

svc_disp = plot_roc_curve(svc, X_test, y_test)

This part of the notebook needs replacing:
From:

Import plot_roc_curve from sklearn's metrics module

from sklearn.metrics import plot_roc_curve

To:

Import RocCurveDisplay from sklearn's metrics module

from sklearn.metrics import RocCurveDisplay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant