Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0d3c65

Browse files
J-Enblomjeremiedbb
authored andcommitted
DOC add link for NearestCentroid example (#28984)
1 parent 36008d7 commit d0d3c65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sklearn/neighbors/_nearest_centroid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ class is the arithmetic mean, which minimizes the sum of squared L1 distances.
9595
NearestCentroid()
9696
>>> print(clf.predict([[-0.8, -1]]))
9797
[1]
98+
99+
For a more detailed example see:
100+
:ref:`sphx_glr_auto_examples_neighbors_plot_nearest_centroid.py`
98101
"""
99102

100103
_parameter_constraints: dict = {

0 commit comments

Comments
 (0)