8000 DOC remove FutureWarning in plot_cluster_comparison (#24927) · scikit-learn/scikit-learn@7b806e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b806e1

Browse files
SarahRemusge72mum
andauthored
DOC remove FutureWarning in plot_cluster_comparison (#24927)
Co-authored-by: ge72mum <ge72mum@mytum.de>
1 parent 81b7fd4 commit 7b806e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cluster/plot_cluster_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
# Create cluster objects
152152
# ============
153153
ms = cluster.MeanShift(bandwidth=bandwidth, bin_seeding=True)
154-
two_means = cluster.MiniBatchKMeans(n_clusters=params["n_clusters"])
154+
two_means = cluster.MiniBatchKMeans(n_clusters=params["n_clusters"], n_init="auto")
155155
ward = cluster.AgglomerativeClustering(
156156
n_clusters=params["n_clusters"], linkage="ward", connectivity=connectivity
157157
)

0 commit comments

Comments
 (0)
0