Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 9 additions & 7 deletions sklearn/decomposition/_dict_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def dict_learning(
positive_code=False,
method_max_iter=1000,
):
"""Solves a dictionary learning matrix factorization problem.
"""Solve a dictionary learning matrix factorization problem.

Finds the best dictionary and the corresponding sparse code for
approximating the data matrix X by solving::
Expand Down Expand Up @@ -567,7 +567,7 @@ def dict_learning(
if `code_init` and `dict_init` are not None.

callback : callable, default=None
Callable that gets invoked every five iterations
Callable that gets invoked every five iterations.

verbose : bool, default=False
To control the verbosity of the procedure.
Expand Down Expand Up @@ -612,11 +612,13 @@ def dict_learning(

See Also
--------
dict_learning_online
DictionaryLearning
MiniBatchDictionaryLearning
SparsePCA
MiniBatchSparsePCA
dict_learning_online : Solve a dictionary learning matrix factorization
problem online.
DictionaryLearning : Find a dictionary that sparsely encodes data.
MiniBatchDictionaryLearning : A faster, less accurate version
of the dictionary learning algorithm.
SparsePCA : Sparse Principal Components Analysis.
MiniBatchSparsePCA : Mini-batch Sparse Principal Components Analysis.
"""
if method not in ("lars", "cd"):
raise ValueError("Coding method %r not supported as a fit algorithm." % method)
Expand Down
1 change: 0 additions & 1 deletion sklearn/tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
numpydoc_validation = pytest.importorskip("numpydoc.validate")

FUNCTION_DOCSTRING_IGNORE_LIST = [
"sklearn.decomposition._dict_learning.dict_learning",
"sklearn.externals._packaging.version.parse",
"sklearn.inspection._plot.partial_dependence.plot_partial_dependence",
"sklearn.linear_model._least_angle.lars_path_gram",
Expand Down