Commit Graph

167 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos ee5a1b69d1
DOC, MNT Typos found by codespell (#22906) 2022-03-20 19:16:39 +01:00
Oleksandr Husak bc44ea7ae8
DOC use notebook-style and fix matplotlib warning for plot_compare_methods (#22679) 2022-03-07 10:40:57 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Meekail Zain 38173e9c4e
DOC Fix MDS images in user guide (#22465)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-02-14 11:17:50 +01:00
Xiao Yuan 5900e2660f
DOC Accelerate examples/manifold/plot_compare_methods.py (#21635)
* Accelerate plot_compare_methods.py

* Change tsne perplexity
2022-02-08 11:10:56 +01:00
siavrez f57a5f9bc0
MNT accelerate example plot_lle_digits.py (#21736) 2021-11-24 08:56:21 +01:00
Xiao Yuan f695147445
DOC Accelerate plot_t_sne_perplexity.py (#21636) 2021-11-16 15:31:58 +01:00
Sebastian Pujalte 5131284e19
ENH Add Swiss-Hole dataset and expand example (#21482)
* added hole to swiss roll and expanded example

* Fixed docstring for numpydoc validation

* Changed error from original docstring.

* Added test for swiss hole

Codecov check was failing because there was no test for the addition of the swisshole. I simply expanded the original test to include it.

* Formatting

* Revert "Formatting"

This reverts commit 727505b21b.

* Revert "Added test for swiss hole"

This reverts commit ae788641f1.

* Added test for Swiss Hole

* fixed test

* added changelog

* Set random state when creating the swiss roll in exampple.

* Set random state when creating the swiss hole in exampple.

* Changed test with reccommendation

* Apply suggestions from code review of plots.

Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>

* Apply grammar and naming suggestions from code review

Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>

* Defined LLE and t-SNE acronyms at beginning

* Linting

Co-authored-by: Tom Dupré la Tour <tom.dupre-la-tour@m4x.org>
2021-11-12 09:51:14 -08: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
Dimitri Papadopoulos Orfanos 5f6e17c084
MNT Remove #!/usr/bin/python shebang in examples (#21246) 2021-10-14 18:51:09 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Guillaume Lemaitre 1d7d6283c1
DOC reformatting example as notebook style (#20543)
Co-authored-by: Guillaume Lemaitre <glemaitre@Guillaumes-MacBook-Air.local>
2021-07-19 17:54:14 +02:00
geroldcsendes bdf79d53a8
DOC Fix color palette in manifold example (#19517) 2021-06-19 10:18:30 +02:00
Thomas J. Fan 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Christian Lorentzen 79b0943de0
DOC avoid FutureWarnings for deprecations examples (#17264)
* MNT keyword only in examples

* MNT pandas 1.0.0 deprectation

See pandas-dev/pandas#23566

* MNT new keyword in 0.23
2020-05-18 18:35:12 +02:00
David Breuer c393bdc6dd EXA/MAINT Simplify code in manifold learning example (#15949) 2019-12-26 13:02:31 +01:00
Brian Wignall 0e10b3a3cb DOC Fix typos, via a Levenshtein-style corrector (#15923) 2019-12-19 16:26:02 -08:00
Thomas J Fan 4a95e33e63 MNT Make modules private in sklearn.datasets (#15307) 2019-10-27 17:17:23 -04:00
Kennedy Kang'ethe 5310b87288 DOC Fix "Variables are collinear" warning in plots_lle_digits (#14162) 2019-07-01 11:23:53 +02:00
MaggieChege 6c56316e73 DOC Fix divide by zero warning (#14147) 2019-06-26 21:10:07 +10:00
William de Vazelhes d31b67f23d FEA Neighborhood Components Analysis (#10058) 2019-02-28 15:58:07 +01:00
TakingItCasual f4e7d2b19a Converting http to https (3)... (#12302) 2018-10-05 18:50:31 +02:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Alexandre Gramfort 553b5fb8f8 BLD fix sphx gallery errors (#11307) 2018-06-18 16:07:33 +10:00
Arik Pamnani d3f8b1e131 Use X and y in plot_lle_digits.py (#10970)
rather than digits.data and digits.target
2018-04-13 08:07:32 +02:00
Loïc Estève db127bd969 [MRG+1] Support minimal dependencies in examples (#10351)
* Support minimal dependencies in examples
* bins="auto" only supported for numpy >= 1.11
* viridis is default cmap in matplotlib 2
* Use signature instead of viridis cmap
2018-01-08 21:36:28 +01:00
Thomas Moreau cb1b6c4734 FIX t-SNE memory usage and many other optimizer issues (#9032)
Use a sparse matrix representation of the neighbors.
Re-factored the QuadTree implementation to avoid insertion errors.
Various fixes in the gradient descent schedule to get the Barnes Hut and exact solvers to behave more robustly and consistently.
2017-07-12 22:56:02 +02:00
Narine Kokhlikyan ae8223356b Add example on t-sne perplexity 2017-06-30 21:10:41 +02:00
Rishikesh d0ce40e8b2 [MRG] remove "matplotlib <1" compatibility code from manifold examples (#8552) 2017-03-10 08:25:37 +01:00
Óscar Nájera bd5cecce44 update references link namespace 2016-08-03 20:23:50 +02:00
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
Andreas Mueller 5b1aca08c2 MAINT Don't use deprecated 1d X (or deprecated matplotlib stuff) in examples. 2015-12-10 12:11:48 -05:00
johannah d15f322111 Added colorblind compatibility 2015-10-23 19:47:32 +02:00
Loïc Estève 32ab5b5d24 DOC fix missing import in plot_lle_digits example
and remove unused lda import.
2015-10-15 21:16:20 +02:00
Vinayak Mehta 679936f6bc MAINT Deprecate LDA/QDA in favor of expanded names
The LDA accronym for Linear Discriminant Analysis is ambiguous
because of the newly introduced Latent Dirichlet Allocation model.

We therefore deprecate the sklearn.lda.LDA and sklearn.lda.QDA
in favor of explicit names.
2015-09-11 15:32:11 +02:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00
Alexander Fabisch f59e08f21f Correct examples 2014-05-28 20:04:46 +02:00
Alexander Fabisch 08c17d24c5 Use PCA initialization in examples 2014-05-28 19:56:10 +02:00
Alexander Fabisch 91e95df436 Integrate PCA initialization
* update docstring
* add tests
2014-05-28 19:56:09 +02:00
Olivier Grisel 58bcbaf0bd Add optional PCA init to t-SNE 2014-05-28 19:56:09 +02:00
Alexander Fabisch 25a8c5f05a Adress Gael's comments
* rename _binary_search to _utils
* indent list elements
* use default parameters in examples
2014-05-28 19:56:09 +02:00
Alexander Fabisch 8d0fadabbc Remove generalization 2014-05-28 19:56:09 +02:00
Alexander Fabisch 1b668d471c Explain example 2014-05-28 19:56:09 +02:00
Alexander Fabisch 43b41f1ff7 Modify learning schedule 2014-05-28 19:56:09 +02:00
Alexander Fabisch 5de4c7ddc6 Remove example with digits dataset 2014-05-28 19:56:09 +02:00
Alexander Fabisch 8c969cb011 Add t-SNE to other examples 2014-05-28 19:56:09 +02:00
Alexander Fabisch 53e015c961 Simplify optimization
* remove L-BFGS, gradient descent finds better visualizations (although the cost is often higher)
* learning_rate is a parameter
* learning schedule:
    * initialize embedding with standard deviation 1
    * 100 episodes with early exaggeration
    * 20 iterations with momentum 0.5
    * then switch to momentum 0.8
    * default learning rate is 100, reasonable range is 100-500
2014-05-28 19:54:15 +02:00