Wrapping line in naive_bayes.rst and specifying bin_seeding argument as optional
This commit is contained in:
parent
3a770a2dbf
commit
8ffee3f4f4
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue