Precision and F-score are ill-defined and being set to 0.0?
<p><a href="http://i.stack.imgur.com/HhsKP.png" rel="nofollow">A question about running python 3.5 using ipython3 notebook.</a></p>

<p>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?</p>

<pre><code>/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)
</code></pre>