Skip to content

Commit 645863e

Browse files
committed
DOC : really fix alpha docstring in dict learning
1 parent 4a04b3f commit 645863e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/decomposition/dict_learning.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def dict_learning_online(X, n_components=2, alpha=1, n_iter=100,
510510
n_components : int,
511511
Number of dictionary atoms to extract.
512512
513-
alpha : float,
513+
alpha : int | float,
514514
Sparsity controlling parameter.
515515
516516
n_iter : int,
@@ -835,7 +835,7 @@ class DictionaryLearning(BaseEstimator, SparseCodingMixin):
835835
n_components : int,
836836
number of dictionary elements to extract
837837
838-
alpha : float,
838+
alpha : int | float,
839839
sparsity controlling parameter
840840
841841
max_iter : int,
@@ -988,7 +988,7 @@ class MiniBatchDictionaryLearning(BaseEstimator, SparseCodingMixin):
988988
n_components : int,
989989
number of dictionary elements to extract
990990
991-
alpha : float,
991+
alpha : int | float,
992992
sparsity controlling parameter
993993
994994
n_iter : int,

0 commit comments

Comments
 (0)