8000 DOC fix typo in KMeans's param. (#25649) · scikit-learn/scikit-learn@6169cc9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6169cc9

Browse files
authored
DOC fix typo in KMeans's param. (#25649)
1 parent 6df0f13 commit 6169cc9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/cluster/plot_kmeans_digits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def bench_k_means(kmeans, name, data, labels):
114114
#
115115
# We will compare three approaches:
116116
#
117-
# * an initialization using `kmeans++`. This method is stochastic and we will
117+
# * an initialization using `k-means++`. This method is stochastic and we will
118118
# run the initialization 4 times;
119119
# * a random initialization. This method is stochastic as well and we will run
120120
# the initialization 4 times;

examples/cluster/plot_kmeans_plusplus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
)
2424
X = X[:, ::-1]
2525

26-
# Calculate seeds from kmeans++
26+
# Calculate seeds from k-means++
2727
centers_init, indices = kmeans_plusplus(X, n_clusters=4, random_state=0)
2828

2929
# Plot init seeds along side sample data

examples/cluster/plot_kmeans_stability_low_dim_dense.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
The first plot shows the best inertia reached for each combination
1212
of the model (``KMeans`` or ``MiniBatchKMeans``), and the init method
13-
(``init="random"`` or ``init="kmeans++"``) for increasing values of the
13+
(``init="random"`` or ``init="k-means++"``) for increasing values of the
1414
``n_init`` parameter that controls the number of initializations.
1515
1616
The second plot demonstrates one single run of the ``MiniBatchKMeans``

sklearn/cluster/_kmeans.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def k_means(
345345
n_init consecutive runs in terms of inertia.
346346
347347
When `n_init='auto'`, the number of runs depends on the value of init:
348-
10 if using `init='random'`, 1 if using `init='kmeans++'`.
348+
10 if using `init='random'`, 1 if using `init='k-means++'`.
349349
350350
.. versionadded:: 1.2
351351
Added 'auto' option for `n_init`.
@@ -1206,7 +1206,7 @@ class KMeans(_BaseKMeans):
12061206
high-dimensional problems (see :ref:`kmeans_sparse_high_dim`).
12071207
12081208
When `n_init='auto'`, the number of runs depends on the value of init:
1209-
10 if using `init='random'`, 1 if using `init='kmeans++'`.
1209+
10 if using `init='random'`, 1 if using `init='k-means++'`.
12101210
12111211
.. versionadded:: 1.2
12121212
Added 'auto' option for `n_init`.
@@ -1734,7 +1734,7 @@ class MiniBatchKMeans(_BaseKMeans):
17341734
:ref:`kmeans_sparse_high_dim`).
17351735
17361736
When `n_init='auto'`, the number of runs depends on the value of init:
1737-
3 if using `init='random'`, 1 if using `init='kmeans++'`.
1737+
3 if using `init='random'`, 1 if using `init='k-means++'`.
17381738
17391739
.. versionadded:: 1.2
17401740
Added 'auto' option for `n_init`.

0 commit comments

Comments
 (0)
0