You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the following warning message while working with the multiclass_precision function:
WARNING:root:tensor([[1],
[2],
[3]]) classes have zero instances in both the predictions and the ground truth labels. Precision is still logged as zero.
Here is a minimal example that produces this warning:
I find the message somewhat misleading, as it implies that there are zero instances for certain classes in both predictions and ground truth labels. However, the ground truth labels do contain instances for each class, while only the predictions have zero instances. This led to me thinking that my ground truth labels were incorrect.
Thanks !
Suggest a potential alternative/fix
If I am not getting something wrong here, the message could be changed to:
WARNING:root:tensor([[1],
[2],
[3]]) classes have zero instances in either the predictions or the ground truth labels. Precision is still logged as zero.
The text was updated successfully, but these errors were encountered:
📚 The doc issue
Hi!
I encountered the following warning message while working with the multiclass_precision function:
Here is a minimal example that produces this warning:
I find the message somewhat misleading, as it implies that there are zero instances for certain classes in both predictions and ground truth labels. However, the ground truth labels do contain instances for each class, while only the predictions have zero instances. This led to me thinking that my ground truth labels were incorrect.
Thanks !
Suggest a potential alternative/fix
If I am not getting something wrong here, the message could be changed to:
The text was updated successfully, but these errors were encountered: