Commit Graph

47 Commits

Author SHA1 Message Date
Chiara Marmo bebb6d2255
DOC Tutorial structure and layout (#18261)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-08-29 10:32:33 -04:00
Gonthier Nicolas a3fad528f9
DOC Fix Tutorial example code lacking context #13566 (#14675)
* Add context to tutorial example

*  try to keep line length under 80 characters

* make CI pass

* MNT Skips unsupervised_learning when scikit-image is not installed

* DOC make code comments as text

* solve issue plotting

* fix

* center images

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
2020-02-12 16:55:35 +01:00
Kanika Sabharwal 40c7978a64 use return_X_y=True for load_iris dataset (#14777) 2019-08-24 17:54:16 -04:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Nicolas Hug a50c03f975 [MRG] Add pprint for estimators - continued (#11705)
* add pprint for estimators

* strip color from length, add color option

* Minor cleaning, fixes, factoring and docs

* Added some basic tests

* Fixed line length issue

* fixed flake8 and added visual test for review

* Fixed test

* Fixed Python 2 issues (inspect.signature import)

* Trying to fix flake8 again

* Added special repr for functions

* Added some other visual tests

* Changed _format_function in to _format_callable

because callable() returns True also for class objects (which we want to
reprensent with their name as well anyway)

* Consistent output in Python 2 and 3

* WIP

* Now using the builtin pprint module

* pep8

* Added changed_only param

* Fixed printing when string would fit in less than line width

* Fixed printing of steps parameter

* Fixed changed_only param for short estimators

* fixed pep8

* Added some more description in docstring

* changed_only is now an option from set_config()

* Put _pprint.py into sklearn/utils, added tests

* Added doctest NORMALIZE_WHITESPACE where needed

* Fixed tests

* fix test-doc

* fixing test that passed before....

* Fixed tests

* Added test for changed_only and long lines

* typo

* Added authors names

* Added license file

* Added ellipsis based on number of elements in sequence + added increasinly aggressive repr strategies

* Updated whatsnew

* dont use increaingly aggressive strategy

* Fixed tests

* Removed LICENSE file and put license text in _pprint.py

* fixed test_base

* Sorted parameters dictionary for consistent output in 3.5

* Actually using OrderedDict...

* Addressed comments

* Added test for NaN changed parameter

* Update whatsnew

* Added example to set_config()

* Removed example

* Added example in gallery

* Spelling
2018-12-19 23:48:21 -05:00
jotasi f107e53a9b [doc build] Changed references to renamed examples (#10654) 2018-02-19 11:24:39 +11:00
FarahSaeed b2723582f2 [MRG] DOC Replacing "the scikit" with "scikit-learn" (#10126) 2017-11-14 11:06:50 +01:00
brett koonce f2186aa19d various minor spelling tweaks (#9783) 2017-09-17 17:04:23 +02:00
Julian Kuhlmann 00358b1f07 Bring last code block in line with the image. (#9488)
Code from http://scikit-learn.org/stable/auto_examples/decomposition/plot_ica_blind_source_separation.html.
2017-08-04 16:00:48 -04:00
Olivier Grisel 5daee9627d DOC fix iterated_power='auto' in doctests 2016-09-06 11:11:07 +02:00
Óscar Nájera acef8cd671 Sphinx-doc absolute path for auto_example images 2016-08-03 20:23:50 +02:00
Óscar Nájera 04116ce286 update image sources namespace 2016-08-03 20:23:50 +02:00
Andreas Mueller 7efeb5ab60 ENH added elkan k_means algorithm
renamed elkan -> triangle_inequality, lloyd-> full

pep8, rename _kmeans_single -> _kmeans_single_lloyd

add a docstring to elkans k-means in cython.

fixed text for full

Fixed elkans kmeans so that predict is same as labels

Added test to ensure full and triangle_inequality give same results

changed triangle_inequality to elkan

Addressed review comments

removed rebase artifacts

correct whats_new

moved enhancement bullet to 0.18

removed extra newline

strong typing dor prototype

fixed random state

removed c file

removed merge artifacts

removed entry from 0.17

Add documentation and inline_comments to _k_means_elkan.pyx

Minor rearrngement of docstring sentences

removed call to np.sort to improve speed for large number of clusters

replced logic with call to np.partition

Fallback to sort if partition does not exist

use partition from fixes rather than numpy
2016-04-05 19:57:19 -04:00
Rémy Léone 9b7176dd9d [DOC] Fix broken links 2016-03-23 12:45:34 -07:00
giorgiop 328ebfa865 ENH RandomizedPCA collapsed into PCA 2016-03-11 09:10:37 +11:00
Nelson Liu fcfaa5fc37 Updated examples and tests that use scipy's lena
scipy.misc.lena will be removed in scipy version 0.17.
This changes the example to use scipy.misc.face instead.
2016-02-11 09:13:40 +01:00
Joel Nothman 763af9690a DOC fix line references in tutorial 2014-08-20 21:00:54 +10:00
Olivier Grisel 2eb1e98eef MAINT ensure that examples figures are displayed in the correct order 2014-07-14 15:47:17 +02:00
Lars Buitinck c176ced74d DOC double backticks for fixed-width (code) font
Fixes #3337. Also other minor fixes while I was at it.
2014-07-06 14:18:33 +02:00
Gael Varoquaux 3ac34554e4 MISC: documentation and cosmits
Address comments by @jnothman
2014-02-17 11:20:42 +01:00
Gael Varoquaux 0cd5251575 FIX: fix failing doctest 2014-02-17 08:37:07 +01:00
Gael Varoquaux 76206f1919 COSMIT: many cosmetic comments
Fixes remarks by @ogrisel, @agramfort, @larsman, @jnothman
2014-02-17 08:34:25 +01:00
Gael Varoquaux 75705e2b24 MISC: remove reference to deprecated Ward 2014-02-07 09:25:08 +01:00
Gael Varoquaux de384755b0 MISC: typos in docs 2014-02-07 08:49:54 +01:00
Gael Varoquaux 1ada65fea2 Merge branch 'master' into hc_linkage
Conflicts:
	sklearn/cluster/tests/test_hierarchical.py
2014-02-04 22:04:48 +01:00
Gael Varoquaux b2473494d0 DOC: more context in embedded code
Fixes #2816
2014-02-02 12:07:55 +01:00
Nelle Varoquaux a45d23fcfd DOC improve narrative docs on hierarchical clustering 2013-08-25 11:33:40 +02:00
dengemann 0e5815726a FIX: address @agramfort 's comments 2013-07-23 15:49:26 +02:00
Denis A. Engemann f7f2db14bb ENH: improve tutorial to be more clean. 2013-07-23 15:49:26 +02:00
Denis A. Engemann 17aff7d2f7 FIX: tutorial 2013-07-23 15:49:25 +02:00
Lars Buitinck 85ec0fd1ae P3K death to the print statement 2013-02-11 23:11:57 +01:00
Mark Veronda 9d5ed3a7c2 Feedback from @amueller 2013-01-02 17:24:35 +01:00
Mark Veronda 3352bbac31 Type-os and added great links to learning more about Machine Learning 2013-01-02 17:24:35 +01:00
GaelVaroquaux 01572bf129 TST: fix doctest 2012-07-30 11:35:25 +02:00
GaelVaroquaux df1e71149c DOC: ward docstring and testing 2012-07-26 09:15:57 +02:00
Andreas Mueller d9a6243c98 ENH rename k in clustering examples and doctests to n_clusters 2012-05-30 07:41:34 +02:00
Andreas Mueller 8474e94e9a DOC sphinx/rst errors 2012-03-31 16:10:59 +02:00
GaelVaroquaux 2edfa60d66 BUG: fix doctests 2012-03-26 02:14:42 +02:00
GaelVaroquaux 6b1bc1744f BUG: no plotting in doctests 2012-03-26 01:32:07 +02:00
Jaques Grobler 66d8f4e3b0 spelling errors,edit curse of dimensionality, explain top-down 2012-03-21 10:08:15 +01:00
Jaques Grobler 11408e71ab spelling fixes 2012-03-20 08:49:35 +01:00
Jaques Grobler db38edb7ea delete redundant file, merged some examples and updated links 2012-03-07 03:55:18 +01:00
Jaques Grobler 30150cfdef Merged some examples into examples folder.
- updated links accordingly
- renamed miss-spelt excercice to exercise
2012-03-06 23:40:49 +01:00
Jaques Grobler bd271ab65c Better doctest time(wip),removed duplicate examples, update plot_ols.py
- I wish to replace the old plot_ols.py example with a new one which
  uses the diabetes_dataset instead of synthetic data.
- references to changed example paths updated
2012-03-05 17:18:05 +01:00
Jaques Grobler f3ed2d7f34 Fixes for doctests 2012-03-02 11:53:07 +01:00
Jaques Grobler 43b962a210 Section 4 done - images/links/htmls for images
-_plot_pca_3d renamed to plot_pca_3d
-plot_pca_3d still needs quiver, but plot works now
-plot_lena_ward added to plot ward clustering of lena
2012-03-01 17:16:41 +01:00
Jaques Grobler 4e78ea4426 Updated tutorial folders in doc with placeholders for other tutorials. updated index.rst for the tutorial menu accordingly 2012-02-16 14:15:28 +01:00