We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 551625f commit 4710045Copy full SHA for 4710045
doc/modules/naive_bayes.rst
@@ -93,8 +93,8 @@ are estimated using maximum likelihood.
93
>>> from sklearn.naive_bayes import GaussianNB
94
>>> gnb = GaussianNB()
95
>>> y_pred = gnb.fit(iris.data, iris.target).predict(iris.data)
96
- >>> print("Number of mislabeled points : %d" % (iris.target != y_pred).sum())
97
- Number of mislabeled points : 6
+ >>> print("Number of mislabeled points out of a total %d points : %d" % (iris.data.shape[0],(iris.target != y_pred).sum()))
+ Number of mislabeled points out of a total 150 points : 6
98
99
.. _multinomial_naive_bayes:
100
0 commit comments