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)