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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -