8000 DOC Add example link to KNeighborsClassifier class (#26979) · akaashp2000/scikit-learn@4852b70 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4852b70

Browse files
emma-carballalakaashpatelmns
authored andcommitted
DOC Add example link to KNeighborsClassifier class (scikit-learn#26979)
1 parent f2ed653 commit 4852b70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sklearn/neighbors/_classification.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ class KNeighborsClassifier(KNeighborsMixin, ClassifierMixin, NeighborsBase):
5454
array of distances, and returns an array of the same shape
5555
containing the weights.
5656
57+
Refer to the example entitled
58+
:ref:`sphx_glr_auto_examples_neighbors_plot_classification.py`
59+
showing the impact of the `weights` parameter on the decision
60+
boundary.
61+
5762
algorithm : {'auto', 'ball_tree', 'kd_tree', 'brute'}, default='auto'
5863
Algorithm used to compute the nearest neighbors:
5964

0 commit comments

Comments
 (0)
0