FIX improve error message with string-encoded target in metrics#18192
Conversation
|
The failure in |
thomasjpfan
left a comment
There was a problem hiding this comment.
Thank you for the PR @glemaitre !
thomasjpfan
left a comment
There was a problem hiding this comment.
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 |
thomasjpfan
left a comment
There was a problem hiding this comment.
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_trueor the predictionsy_predare encoded as strings.