Skip to content

Commit e30ae9f

Browse files
committed
Pushing the docs to dev/ for branch: main, commit aee7f594f5d82ba75bcb8d720066ce18c727d0d1
1 parent a472215 commit e30ae9f

File tree

1,361 files changed

+4732
-4786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,361 files changed

+4732
-4786
lines changed
Binary file not shown.

dev/_downloads/4825fc8223d1af0f3b61080c3dea3a62/plot_faces_decomposition.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
153153

154154
# %%
155155
batch_pca_estimator = decomposition.MiniBatchSparsePCA(
156-
n_components=n_components, alpha=0.1, n_iter=100, batch_size=3, random_state=rng
156+
n_components=n_components, alpha=0.1, max_iter=100, batch_size=3, random_state=rng
157157
)
158158
batch_pca_estimator.fit(faces_centered)
159159
plot_gallery(
@@ -171,7 +171,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
171171

172172
# %%
173173
batch_dict_estimator = decomposition.MiniBatchDictionaryLearning(
174-
n_components=n_components, alpha=0.1, n_iter=50, batch_size=3, random_state=rng
174+
n_components=n_components, alpha=0.1, max_iter=50, batch_size=3, random_state=rng
175175
)
176176
batch_dict_estimator.fit(faces_centered)
177177
plot_gallery("Dictionary learning", batch_dict_estimator.components_[:n_components])
@@ -272,7 +272,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
272272
dict_pos_dict_estimator = decomposition.MiniBatchDictionaryLearning(
273273
n_components=n_components,
274274
alpha=0.1,
275-
n_iter=50,
275+
max_iter=50,
276276
batch_size=3,
277277
random_state=rng,
278278
positive_dict=True,
@@ -294,7 +294,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
294294
dict_pos_code_estimator = decomposition.MiniBatchDictionaryLearning(
295295
n_components=n_components,
296296
alpha=0.1,
297-
n_iter=50,
297+
max_iter=50,
298298
batch_size=3,
299299
fit_algorithm="cd",
300300
random_state=rng,
@@ -318,7 +318,7 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
318318
dict_pos_estimator = decomposition.MiniBatchDictionaryLearning(
319319
n_components=n_components,
320320
alpha=0.1,
321-
n_iter=50,
321+
max_iter=50,
322322
batch_size=3,
323323
fit_algorithm="cd",
324324
random_state=rng,

0 commit comments

Comments
 (0)