DOC remove FutureWarning in plot_kmeans_silhouette_analysis
@@ -69,7 +69,7 @@ for n_clusters in range_n_clusters:
# Initialize the clusterer with n_clusters value and a random generator
# seed of 10 for reproducibility.
- clusterer = KMeans(n_clusters=n_clusters, random_state=10)
+ clusterer = KMeans(n_clusters=n_clusters, n_init="auto", random_state=10)
cluster_labels = clusterer.fit_predict(X)
# The silhouette_score gives the average value for all the samples.
