DOC Fix FutureWarning in 'examples/bicluster/plot_bicluster_newsgroups.py'
@@ -81,7 +81,9 @@ vectorizer = NumberNormalizingVectorizer(stop_words="english", min_df=5)
cocluster = SpectralCoclustering(
n_clusters=len(categories), svd_method="arpack", random_state=0
)
-kmeans = MiniBatchKMeans(n_clusters=len(categories), batch_size=20000, random_state=0)
+kmeans = MiniBatchKMeans(
+ n_clusters=len(categories), batch_size=20000, random_state=0, n_init=3
+)
print("Vectorizing...")
X = vectorizer.fit_transform(newsgroups.data)
