精度和F分数是不明确的,并设置为0.0?

时间:2016-08-24 05:55:08

标签: python-3.x scikit-learn ipython

A question about running python 3.5 using ipython3 notebook.

主要问题是,如果我添加以下代码中标记的代码,则会出现以下警告,如何解决此问题?

/usr/local/lib/python3.5/dist-packages/sklearn/metrics/classification.py:1074:
UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples.
'precision', 'predicted', average, warn_for)

0 个答案:

没有答案