Skip to content

Commit 211dfa4

Browse files
author
Manuel
committed
Rename k to n_clusters in docs
1 parent 3a02da8 commit 211dfa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/k_means_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ class MiniBatchKMeans(KMeans):
11041104
Number of samples to randomly sample for speeding up the
11051105
initialization (sometimes at the expense of accuracy): the
11061106
only algorithm is initialized by running a batch KMeans on a
1107-
random subset of the data. This needs to be larger than k.
1107+
random subset of the data. This needs to be larger than n_clusters.
11081108
11091109
init : {'k-means++', 'random' or an ndarray}, default: 'k-means++'
11101110
Method for initialization, defaults to 'k-means++':

0 commit comments

Comments
 (0)