-
-
Notifications
You must be signed in to change notification settings - Fork 26.4k
EFF Optimize function utils.validation._check_pos_label_consistency #28051
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
EFF Optimize function utils.validation._check_pos_label_consistency #28051
Conversation
thomasjpfan
left a comment
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.
Thank you for the PR! Overall looks good.
Please add an entry to the change log at doc/whats_new/v1.5.rst with tag |Efficiency|. Like the other entries there, please reference this pull request with :pr: and credit yourself (and other contributors if applicable) with :user:.
The changelog is public facing and _check_pos_label_consistency is a private function. Your changelog entry should reference public functions that are now more efficient: calibration_curve, brier_score_loss, precision_recall_curve, det_curve, roc_curve.
|
Thank you @thomasjpfan for your review! I just added the changes you suggested. |
Co-authored-by: Thomas J. Fan <[email protected]>
09956cc to
884cb07
Compare
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
thomasjpfan
left a comment
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.
Otherwise LGTM
Co-authored-by: Thomas J. Fan <[email protected]>
glemaitre
left a comment
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.
LGTM. Thanks @pidefrem
…cikit-learn#28051) Co-authored-by: Thomas J. Fan <[email protected]>
Reference Issues/PRs
Fixes #28050
What does this implement/fix? Explain your changes.
Optimizing the function
_check_pos_label_consistencywhen the argumentpos_labelis notNoneby avoiding the applynp.uniqueto the classes.Any other comments?