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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With