机器学习的分类任务中错误提示以及解决方案

1.UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples.
在预测数据中存在实际类别没有的标签时报此warning

你可能感兴趣的:(机器学习)