python 3.x - Precision and F-score are ill-defined and being set to 0.0? -
a question running python 3.5 using ipython3 notebook.
the main problem if add following codes marked in picture, following warning happend, how can fix issue?
/usr/local/lib/python3.5/dist-packages/sklearn/metrics/classification.py:1074: undefinedmetricwarning: precision , f-score ill-defined , being set 0.0 in labels no predicted samples. 'precision', 'predicted', average, warn_for)
Comments
Post a Comment