undefinedmetricwarning专题

UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels

预测的标签中缺少实际的标签。 避免警告的方法如下: import warningswarnings.filterwarnings("ignore")