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

Skip to content

Commit 3d16a21

Browse files
authored
DOC Fix FutureWarning in decomposition/plot_faces_decomposition.html (#24936)
1 parent 498abaa commit 3d16a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/decomposition/plot_faces_decomposition.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
191191
batch_size=20,
192192
max_iter=50,
193193
random_state=rng,
194+
n_init="auto",
194195
)
195196
kmeans_estimator.fit(faces_centered)
196197
plot_gallery(

0 commit comments

Comments
 (0)