-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Error in d2_log_loss_score
multiclass when one of the classes is missing in y_true
.
#30713
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
Comments
Indeed, I can reproduce, looks like an oversight, but more investigation is needed. |
Thanks for the report @aperezlebel. Are you interested in opening on a PR yourself? |
I would be, but I am afraid I won't have time in the near future. |
Hello, I think I have identified the issue here:
I think that computing @ogrisel I will open a PR myself within the next days. Excuse me for my long response and if I did not follow protocol. This is my very first attempt at contributing to open source and I am still familiarizing with the workflow |
Describe the bug
Hello, I encountered an error with the
d2_log_loss_score
in the multiclass setting (i.e. wheny_pred
has shape (n, k) with k >= 3) when one of the classes is missing from they_true
labels, even when giving the labels through thelabels
argument. The error disappear when all the classes are present iny_true
.Steps/Code to Reproduce
Expected Results
No error is thrown.
Actual Results
Versions
The text was updated successfully, but these errors were encountered: