8000 DOC fix sphinx reference to Kmeans in NearestCentroids section (#15594) · scikit-learn/scikit-learn@28d2c97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28d2c97

Browse files
lucaionescuglemaitre
authored andcommitted
DOC fix sphinx reference to Kmeans in NearestCentroids section (#15594)
1 parent 968252d commit 28d2c97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/neighbors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ Nearest Centroid Classifier
460460

461461
The :class:`NearestCentroid` classifier is a simple algorithm that represents
462462
each class by the centroid of its members. In effect, this makes it
463-
similar to the label updating phase of the :class:`sklearn.KMeans` algorithm.
463+
similar to the label updating phase of the :class:`sklearn.cluster.KMeans` algorithm.
464464
It also has no parameters to choose, making it a good baseline classifier. It
465465
does, however, suffer on non-convex classes, as well as when classes have
466466
drastically different variances, as equal variance in all dimensions is
@@ -572,7 +572,7 @@ implementation with special data types. The precomputed neighbors
572572
.. note::
573573
When a specific number of neighbors is queried (using
574574
:class:`KNeighborsTransformer`), the definition of `n_neighbors` is ambiguous
575-
since it can either include each training point as its own neighbor, or
575+
since it can either include each training point as its own neighbor, or
576576
exclude them. Neither choice is perfect, since including them leads to a
577577
different number of non-self neighbors during training and testing, while
578578
excluding them leads to a difference between `fit(X).transform(X)` and

0 commit comments

Comments
 (0)
0