Jérémie du Boisberranger
c4983148f3
MNT Finalize the change of the default `init` of NMF ( #21500 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-10-30 16:20:47 +02:00
Dimitri Papadopoulos Orfanos
d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples ( #21307 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00
Thomas J. Fan
70a185ae59
MAINT Enable and run black on examples ( #20502 )
2021-10-07 10:13:00 +02:00
Thomas J. Fan
81dde3a6e5
STY Ensures that "flake8 ." works ( #20298 )
2021-06-18 15:46:40 +02:00
Chiara Marmo
6bd8df099f
DOC Fix warnings about references and links ( #14976 )
2019-09-23 11:49:08 -04:00
Sourav Singh
f8e4cc495a
ENH Add return_X_y to 20_newsgroups and olivetti_faces ( #14259 )
2019-07-20 10:30:09 +08:00
Guillaume Lemaitre
9328581ec5
FIX use CD solver in face decomposition to use postive parameter ( #13975 )
2019-05-29 15:05:02 +02:00
Guillaume Lemaitre
a98db9a4d6
DEP change default and deprecate normalize_components in SparsePCA ( #13838 )
2019-05-29 12:06:50 +02:00
Adrin Jalali
69c8967e21
DOC Fix warnings in examples ( #12654 )
...
Fixe or suppresses many warnings in examples, including matplotlib complaining about the non-gui backend.
2019-01-17 21:41:13 +11:00
Ivan PANICO
6eb19831d1
BUG: centering and fixing scaling issue in SparsePCA ( #11585 )
2018-07-21 00:00:15 +02:00
jakirkham
6ce497c3bc
[MRG] ENH: Optional positivity constraints on the dictionary and sparse 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.
2018-06-21 16:36:48 +02:00
plagree
1f6ac72df7
[MRG] DOC examples with correct notebook style ( #9061 )
...
* DOC examples with correct notebook style
* Modifications in examples/ to avoid unwanted notebook style
* Remove last notebook style example
* Space formatting to avoid notebook style
2017-06-20 14:48:57 +02:00
Alexandre Abadie
29992d958f
add explicit comment in face decomposition example
2016-09-19 14:27:07 +02:00
Alexandre Abadie
77d9c09ba9
fixing failing faces decomposition example
2016-09-19 10:55:05 +02:00
Alexandre Abadie
171b31d0b8
DOC fix deprecation warning in faces decomposition example
2016-09-17 21:53:45 +02:00
TomDLT
ceeef70037
ENH refactor NMF and add CD solver
2015-09-21 11:42:07 +02:00
Rajat Khanduja
5e20b8c664
Fixed pep8 violations. Some 'line too long' errors still remain.
2014-05-15 09:23:16 +05:30
Rajat Khanduja
2244098532
Updated examples to use pyplot for plotting instead of pylab
...
Some examples not updated because scripts throw error (probably not
because of the change)
2014-05-15 02:18:07 +05:30
Andreas Mueller
26eb3c606f
DOC/EXAMPLES fix more documentation errors, deprecated api usages.
2013-07-28 15:01:48 +02:00
Robert Layton
dacfd8bd5d
DOC: Replaced all BSD style licenses with "BSD 3 clause"
...
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!
Removed duplicate "3 clause, 3 clause"
Removed trailing period if exists
Fixed some missed licences, still about 50 to do, but those can be automated
Think I got the last of them.
Apparently me and sed have different ideas of regex.
Found a few more
2013-04-30 08:34:46 +02:00
Lars Buitinck
837093df7f
P3K: use print as a function in the examples
...
Also corrected some typos, including two people misspelling their own names :)
2013-02-01 15:04:42 +01:00
Andreas Mueller
38b455d541
Cosmit pep8
2012-12-25 13:16:05 +01:00
Andreas Mueller
22b52eb124
COSMIT renaming chunk_size to batch_size in MiniBatchDictionaryLearning and MiniBatchSparsePCA
2012-12-16 15:45:34 +01:00
Immanuel Bayer
ca8a8eb66a
ENH renaming 'n_atoms' to 'n_components' for consistency
2012-11-04 10:01:13 +00:00
osdf
7f8c087acd
Two iterations are enough for the test.
2012-10-13 19:29:02 +02:00
osdf
eac061b845
Plot noise variance for FA. Changed some things to make plot_gallery usable for this, too.
2012-10-13 19:29:01 +02:00
osdf
f881485372
Extended faces decomposition example with Factor Analysis.
2012-10-13 19:29:01 +02:00
Andreas Mueller
de7eb723dc
FIX faces_decomposition example. That this broke only now is a sign of deep magic, better left unexplored.
2012-06-04 22:27:34 +02:00
Andreas Mueller
2e084358f3
FIX typo in example. My bad.
2012-06-02 18:37:02 +02:00
Andreas Mueller
d9a6243c98
ENH rename k in clustering examples and doctests to n_clusters
2012-05-30 07:41:34 +02:00
Olivier Grisel
1b0b500722
Fix bad reference to LFW in example
2012-04-01 19:05:56 +02:00
Olivier Grisel
2c496e7765
MiniBatchSparsePCA and MiniBatchDictionaryLearning still use chunk_size as argument
2012-03-03 18:53:45 +01:00
Andreas Mueller
61b0e28f9f
MISC removed deprecated api from examples
2012-03-03 18:30:02 +01:00
Andreas Mueller
dc74f817a8
DOC Insert hidden toctree, mv "included" files from rst to txt
2012-02-17 22:33:53 +01:00
Alexandre Gramfort
3f330f2967
STY : pep8
2011-12-20 15:34:17 +01:00
Vlad Niculae
bb03e8a85e
Adapted examples for alpha scaling
2011-12-20 11:17:38 +01:00
vene
d56281e00b
explicit seeding of olivetti faces loader
2011-09-19 14:19:24 +03:00
vene
36b81e53f5
Stabilized and improved face decomposition example
2011-09-19 13:51:23 +03:00
vene
2121bfcabc
tweaked faces decomposition and added to dict learning docs
2011-09-17 20:20:58 +03:00
vene
84b8c67336
layout
2011-09-17 19:36:50 +03:00
vene
167f34080e
renamed MiniBatchDictionaryLearning
2011-09-17 18:55:16 +03:00
vene
dd30699639
Included dictionary learning online in decomp example
2011-09-12 19:44:29 +03:00
Olivier Grisel
78dd8b5626
batch trailing spaces cleanup
2011-09-06 23:12:26 +02:00
Fabian Pedregosa
ddf4b72109
Move project directory from scikits.learn to sklearn
2011-09-02 12:06:57 +02:00
Fabian Pedregosa
68f27e3790
Revert "Move project directory from scikits.learn to sklearn"
...
This reverts commit fd0d3b879d .
2011-09-02 12:03:18 +02:00
Fabian Pedregosa
fd0d3b879d
Move project directory from scikits.learn to sklearn
2011-09-02 11:38:24 +02:00
Gael varoquaux
65a2d4a46d
COSMIT: doc and examples in decomposition
2011-08-12 08:30:29 +02:00
vene
872971e43b
add refs to example
2011-08-12 07:48:03 +02:00
Gael varoquaux
82b423cc0e
MISC: prettify the faces example
2011-08-12 07:48:03 +02:00
vene
06bdd21dd0
prettify face decomposition example (ft. GaelVaroquaux)
2011-08-12 07:48:03 +02:00