Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/decomposition/plot_image_denoising.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

print("Learning the dictionary...")
t0 = time()
dico = MiniBatchDictionaryLearning(n_components=100, alpha=1, n_iter=500)
dico = MiniBatchDictionaryLearning(n_components=50, alpha=1, n_iter=250)
V = dico.fit(data).components_
dt = time() - t0
print("done in %.2fs." % dt)
Expand Down Expand Up @@ -139,7 +139,7 @@ def show_with_diff(image, reference, title):
transform_algorithms = [
("Orthogonal Matching Pursuit\n1 atom", "omp", {"transform_n_nonzero_coefs": 1}),
("Orthogonal Matching Pursuit\n2 atoms", "omp", {"transform_n_nonzero_coefs": 2}),
("Least-angle regression\n5 atoms", "lars", {"transform_n_nonzero_coefs": 5}),
("Least-angle regression\n4 atoms", "lars", {"transform_n_nonzero_coefs": 4}),
("Thresholding\n alpha=0.1", "threshold", {"transform_alpha": 0.1}),
]

Expand Down