-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX improve error message with string-encoded target in metrics #18192
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
FIX improve error message with string-encoded target in metrics #18192
Conversation
The failure in |
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 @glemaitre !
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.
Test still failing. (brier_score_loss
sure likes using max()
and min()
)
I opened #18307 and comment out the test with |
@thomasjpfan We need to convert into a list the label NumPy array because we will fall into 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.
Minor comment. Otherwise LGTM
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…it-learn#18192) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
This test makes sure that we fail with a human-understandable message when the target
y_true
or the predictionsy_pred
are encoded as strings.