10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c7fb1 commit ba496d8Copy full SHA for ba496d8
sklearn/cluster/_kmeans.py
@@ -1802,6 +1802,12 @@ class MiniBatchKMeans(_BaseKMeans):
1802
-----
1803
See https://www.eecs.tufts.edu/~dsculley/papers/fastkmeans.pdf
1804
1805
+ When there are too few points in the dataset, some centers may be
1806
+ duplicated, which means that a proper clustering in terms of the number
1807
+ of requesting clusters and the number of returned clusters will not
1808
+ always match. One solution is to set `reassignment_ratio=0`, which
1809
+ prevents reassignments of clusters that are too small.
1810
+
1811
Examples
1812
--------
1813
>>> from sklearn.cluster import MiniBatchKMeans
0 commit comments