Issue
I got this warning
UndefinedMetricWarning: No positive samples in y_true, true positive value should be meaningless UndefinedMetricWarning)
Do you have any idea what it means?
Solution
This means that all the values in y_true are zeros, which means there is no positive class records in the given dataset.
Try the following to understand the distribution of classes in your dataset.
from collections import Counter
Counter(y_true) # y_true must be your labels
Answered By - Venkatachalam
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.