-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
API add from_estimator and from_predictions to RocCurveDisplay #20569
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good.
How should we handle the release hightlights for 0.22?
scikit-learn/examples/release_highlights/plot_release_highlights_0_22_0.py
Lines 51 to 53 in 3d3d176
svc_disp = plot_roc_curve(svc, X_test, y_test) | |
rfc_disp = plot_roc_curve(rfc, X_test, y_test, ax=svc_disp.ax_) | |
rfc_disp.figure_.suptitle("ROC curve comparison") |
I guess we can comment out the deprecated code, use from_estimator
and add a comment?
I guess we can comment out the deprecated code, use from_estimator and add a comment? I would delay the change for when we will remove the function. But I assume that commenting will be the only way to manage these issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment, otherwise LGTM!
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scikit-learn/core-devs this needs another review if it's going to be in the release. I'd like to call a feature freeze on Monday.
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good. Thanks @glemaitre!
@pytest.fixture(scope="module") | ||
def data_binary(data): | ||
X, y = data | ||
return X[y < 2], y[y < 2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice use of module-scoped fixtures.
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…t-learn#20569) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…t-learn#20569) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
…t-learn#20569) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Address some of #15880
Add
from_estimator
andfrom_predictions
method and deprecate theplot_roc_curve
.TODO:
plot_roc_curve