8000 DOC Specify the meaning of dict_init=None in dict_learning_online (#2… · kernc/scikit-learn@125a6c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 125a6c6

Browse files
DOC Specify the meaning of dict_init=None in dict_learning_online (scikit-learn#23261)
1 parent abbeacc commit 125a6c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn/decomposition/_dict_learning.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,9 @@ def dict_learning_online(
808808
Whether to also return the code U or just the dictionary `V`.
809809
810810
dict_init : ndarray of shape (n_components, n_features), default=None
811-
Initial value for the dictionary for warm restart scenarios.
811+
Initial values for the dictionary for warm restart scenarios.
812+
If `None`, the initial values for the dictionary are created
813+
with an SVD decomposition of the data via :func:`~sklearn.utils.randomized_svd`.
812814
813815
callback : callable, default=None
814816
A callable that gets invoked at the end of each iteration.

0 commit comments

Comments
 (0)
0