Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MRG] ENH: Optional positivity constraints on the dictionary and spar…
…se code (#6374) * ENH: Add positivity option for code and dictionary Provides an option for dictionary learning to positively constrain the dictionary and the sparse code. This is useful in applications of dictionary learning where the data is know to be positive (e.g. images), but the sparsity constraint that dictionary learning has is better suited for factorizing the data in contrast to other positively constrained factorization techniques like NMF, which may not be similarly sparse. * TST: Test positivity with code and dictionary Ensure that when the positivity constraint is applied that the dictionary and code end up having only positive values in the respective results depending on whether dictionary and/or code are positively constrained. * DOC: Positivity constraints dictionary learning Shows the various positivity constraints on dictionary learning and what the results of these look like using a Red to Blue color map. These are included in the examples and also in the docs below dictionary learning. All of these use the Olivetti faces as a training set.
- Loading branch information
Showing
4 changed files
with
284 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.