2024-09-23 22:28:08 发布
网友
我收到警告了
UndefinedMetricWarning: No positive samples in y_true, true positive value should be meaningless UndefinedMetricWarning)
你知道这是什么意思吗?在
这意味着y\u true中的所有值都是零,这意味着给定数据集中没有正的类记录。在
尝试这样做以了解数据集中类的分布情况。在
from collections import Counter Counter(y_true) # y_true must be your labels
这意味着y\u true中的所有值都是零,这意味着给定数据集中没有正的类记录。在
尝试这样做以了解数据集中类的分布情况。在
相关问题 更多 >
编程相关推荐