Wrapping line in naive_bayes.rst and specifying bin_seeding argument as optional

This commit is contained in:
Ankit Agrawal 2013-10-16 15:52:50 +05:30
parent 3a770a2dbf
commit 8ffee3f4f4
2 changed files with 3 additions and 2 deletions

View File

@ -93,7 +93,8 @@ are estimated using maximum likelihood.
>>> from sklearn.naive_bayes import GaussianNB
>>> gnb = GaussianNB()
>>> y_pred = gnb.fit(iris.data, iris.target).predict(iris.data)
>>> print("Number of mislabeled points out of a total %d points : %d" % (iris.data.shape[0],(iris.target != y_pred).sum()))
>>> 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
.. _multinomial_naive_bayes:

View File

@ -216,7 +216,7 @@ class MeanShift(BaseEstimator, ClusterMixin):
with bandwidth as the grid size and default values for
other parameters.
bin_seeding : boolean
bin_seeding : boolean, optional
If true, initial kernel locations are not locations of all
points, but rather the location of the discretized version of
points, where points are binned onto a grid whose coarseness