8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7250c69 commit 9670b42Copy full SHA for 9670b42
examples/neighbors/plot_nearest_centroid.py
@@ -15,7 +15,6 @@
15
from sklearn.neighbors import 9CC4 NearestCentroid
16
from sklearn.inspection import DecisionBoundaryDisplay
17
18
-n_neighbors = 15
19
20
# import some data to play with
21
iris = datasets.load_iris()
@@ -29,7 +28,7 @@
29
28
cmap_bold = ListedColormap(["darkorange", "c", "darkblue"])
30
31
for shrinkage in [None, 0.2]:
32
- # we create an instance of Neighbours Classifier and fit the data.
+ # we create an instance of Nearest Centroid Classifier and fit the data.
33
clf = NearestCentroid(shrink_threshold=shrinkage)
34
clf.fit(X, y)
35
y_pred = clf.predict(X)
0 commit comments