Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64432e1

Browse files
authored
DOC Fix FutureWarning in 'examples/bicluster/plot_bicluster_newsgroups.py' (#24880)
1 parent 13b5b61 commit 64432e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/bicluster/plot_bicluster_newsgroups.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def build_tokenizer(self):
8181
cocluster = SpectralCoclustering(
8282
n_clusters=len(categories), svd_method="arpack", random_state=0
8383
)
84-
kmeans = MiniBatchKMeans(n_clusters=len(categories), batch_size=20000, random_state=0)
84+
kmeans = MiniBatchKMeans(
85+
n_clusters=len(categories), batch_size=20000, random_state=0, n_init=3
86+
)
8587

8688
print("Vectorizing...")
8789
X = vectorizer.fit_transform(newsgroups.data)

0 commit comments

Comments
 (0)