0

A question about running python 3.5 using ipython3 notebook.

The main problem is that If I add the following codes that marked in the picture, the following warning is happend, How can I fix this issue?

/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)
Thomas K
  • 39,200
  • 7
  • 84
  • 86
PaulTsai
  • 31
  • 1
  • 8
  • Code always goes into code blocks, please don't attach images of code. – cel Aug 24 '16 at 06:18
  • Possible duplicate of [why does scikilearn says F1 score is ill-defined with FN bigger than 0?](http://stackoverflow.com/questions/34757653/why-does-scikilearn-says-f1-score-is-ill-defined-with-fn-bigger-than-0) – Ami Tavory Aug 26 '16 at 07:51

0 Answers0