Commit Graph

58 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
Kevin Markham 2e9dbe6412
DOC Minor documentation fixes (#18056) 2020-08-02 10:08:36 -04:00
chaitanyamogal ed9e9da389
EXA change in position of plot image (#17924) 2020-07-15 23:49:44 +02:00
topisan 3379e90f6d DOC return_X_y for load diabetes (#14762) 2019-08-24 23:17:01 -04:00
Tilen Kusterle a8efe00876 EXA Use return_X_y=True with load_digits where appropriate (#14359) 2019-07-14 17:10:54 +02: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
Guillaume Lemaitre 9adba491a2 [MRG] DEP change the default of cv and n_splits (#13839) 2019-05-29 23:39:20 +10: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
Denis Kataev b020f62250 MNT Apply pep8 to docs code (#12275) 2018-10-05 22:51:42 +08:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02:00
Alexandre Boucaud f158e2dfe2 [MRG+1] Change CV defaults to 5 (#11557)
* add FutureWarning for methods with defaults=3

* add explicit cv values to fix assertion errors

* add tests for catching the FutureWarning

* Write current deprecation version

* Add deprecation in docstring

* change default cv value to None

* change cv from 3 to 5 in the examples

* upgrade doctests

* update doctest in tutorial

* update doctest in cross-validation doc

* fix tests

* add entry to whats new

* address Gael comments

* address Gael comments 2

* fix wrong indentation

* update doc

* add docstring deprecation warning in CV subclasses

* address Andy's comments

* fix PR number

* fix flake8

* add filterwarnings in tests

* fix doctests

* cv=None mendatory in Ridge

* fix warning related errors

* skip some doctests warnings

* make travis happy

* change from deprecated to versionchanged

* fix doctests and remove skipping

* address comments
2018-07-19 14:46:11 +02:00
Andreas Mueller 6ecb98eea3 doctest errors "fixed" by skipping 2018-07-17 18:08:42 -05:00
Loïc Estève 20661b5018
TST: only run doctests on numpy 1.14. (#10835)
Fix doctests due to numpy 1.14 formatting changes.
2018-03-27 07:44:40 +02:00
Aseem Bansal 2d0bce7bc8 [MRG] Fix Parameters in tutorials (#8345) 2017-02-23 21:27:28 +11:00
Asish Mahapatra c6b2002ece Remove redefinition of k_fold in model_selection.rst (#8330) 2017-02-11 14:10:22 +01:00
Raghav RV 9a12555e6d [MRG+1] ENH/MNT Rename labels --> groups in CV tools (#6660) 2016-09-11 19:14:41 +02:00
Preston Parry 58b35d8b9f DOC Updates sklearn naming convention for consistency (#7268)
* Updates sklearn naming convention for consistency

* minor grammar fix

* clarifies source of string vs. function cosine
2016-08-29 08:20:13 +10:00
Yen 42120e50bb [MRG+1] Rename CV params n_{folds,iter} to n_splits (#7187)
* Rename n_iter to n_splits

* Fix bug

* Fix examples

* Add spaces

* Rename n_folds to n_splits

* Fix error

* Fix doc

* Fix doc

* Fix example

* Rename variables name

* PEP8

* Fix error message

* Add whats_new

* Fix test

* Fix doc

* Fix doc

* Make test clear
2016-08-16 13:56:55 -07:00
Óscar Nájera acef8cd671 Sphinx-doc absolute path for auto_example images 2016-08-03 20:23:50 +02:00
Óscar Nájera bd5cecce44 update references link namespace 2016-08-03 20:23:50 +02:00
Óscar Nájera 04116ce286 update image sources namespace 2016-08-03 20:23:50 +02:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
Andreas Mueller e936dfa641 search C not gamma of linear svm in tutorial 2015-01-27 18:15:36 -05:00
Joel Nothman 763af9690a DOC fix line references in tutorial 2014-08-20 21:00:54 +10:00
MechCoder cf4cf60b7e ENH Stochastic Coordinate Descent for ElasticNet & Lasso 2014-07-29 10:23:33 +02: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
Andreas Mueller 926e651f44 Stop using some deprecated interfaces. 2014-06-08 22:16:26 +02:00
Andreas Mueller 67b8601314 Minor fixes in the docs 2014-06-07 16:38:53 +02:00
Alexandre Gramfort 7013e243ff FIX : n_jobs was missing from LassoCV 2014-01-11 21:39:25 +01:00
Olivier Grisel e3002c5efc FIX #2372: non-shuffling StratifiedKFold implementation and updated tests 2013-09-25 15:56:47 +02:00
Olivier Grisel 0ab527804e Revert "Fix accidental doctest breakage."
This reverts commit 4c95f5e00a.
2013-09-20 13:27:48 +02:00
Daniel Nouri 4c95f5e00a Fix accidental doctest breakage. 2013-09-20 12:41:39 +02:00
Andreas Mueller 65d1ef5147 DOC FIX finite precision 2013-03-15 10:15:15 +01:00
Andreas Mueller 0c94b55c63 ENH add randomized hyperparameter optimization 2013-03-03 20:56:39 +01:00
Alexandre Gramfort adb85bb487 fix doctest 2013-03-02 16:39:42 +01: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 252f73c92e COSMIT: pep8, wording, layout 2012-11-08 09:29:07 +01:00
Corey Lynch c188755c2f Edited docs to reflect change in kernel used. 2012-11-08 09:15:16 +01:00
Tadej Janež 425c6e9b83 DOC: further improvements to the model selection exercise 2012-10-27 16:49:22 +02:00
GaelVaroquaux eca762dd9b DOC: improve the model selection exercise
Fixes #1278
2012-10-25 18:12:15 +02:00
Andreas Mueller 1b367e56e5 ENH set n_fold default to 3, rename k to n_fold in all doctests, docs, and examples 2012-10-10 19:10:29 +01:00
Alexandre Gramfort 466479fe03 API : consistent use alpha_/alphas_ for alpha/alphas estimated by CV in linear models (issue #1041) 2012-09-02 23:16:54 +02:00
Vlad Niculae 3885dd8ac3 FIX: doctests for scale_C, took some liberties 2012-05-05 21:57:05 +02:00
Andreas Mueller 55959ed879 COSMIT don't use deprecated attributes in tutorial. 2012-04-23 21:16:13 +02:00
Mathieu Blondel a8b5110496 Fix doctest failure. 2012-03-31 21:11:43 +09:00
Jaques Grobler efd467cffd Fixed broken image link 2012-03-27 15:27:14 +02:00
GaelVaroquaux 7278dfe482 DOC: finish misc in tutorial
@jaquesgrobler : there were still a few things to do :)
2012-03-26 01:20:53 +02:00