Skip to content

Commit 6eee7a5

Browse files
committed
FIX pass random_state to inner call to randomized_svd
1 parent 2d559ba commit 6eee7a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/decomposition/dict_learning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ def dict_learning_online(X, n_components=2, alpha=1, n_iter=100,
624624
if dict_init is not None:
625625
dictionary = dict_init
626626
else:
627-
_, S, dictionary = randomized_svd(X, n_components)
627+
_, S, dictionary = randomized_svd(X, n_components,
628+
random_state=random_state)
628629
dictionary = S[:, np.newaxis] * dictionary
629630
r = len(dictionary)
630631
if n_components <= r:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy