-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MNT Improve exception handling for invalid labels in cohen_kappa_score #31175
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
MNT Improve exception handling for invalid labels in cohen_kappa_score #31175
Conversation
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
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.
Just nitpicks.
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.
Just a nitpick!
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com> Co-authored-by: Lucy Liu <jliu176@gmail.com>
scikit-learn#31175) Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com> Co-authored-by: Lucy Liu <jliu176@gmail.com>
This PR fixes a possibly confusing error message coming from confusion matrix by re-raising it with a corrected message.
It also adds a section to the documentation explaining that when passing
labels
, the order ofy1
andy2
does matter, which otherwise could be surprising to the users.