Commit Graph

59 Commits

Author SHA1 Message Date
Amar pratap singh f5eb00ce90
DOC update notebook-style example plot_cv_diabetes.py (#22740) 2022-03-17 11:42:01 +01: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 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
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
Archana Alva 40b2a6c7e3 EXA Removing redundant parameters assignment in examples (#14360) 2019-07-14 22:26:41 +08:00
Guillaume Lemaitre 9adba491a2 [MRG] DEP change the default of cv and n_splits (#13839) 2019-05-29 23:39:20 +10:00
Guillaume Lemaitre c28ef9ef2a DEP change the default of multi_class to 'auto' in logistic regression (#13807) 2019-05-22 09:57:15 -04:00
Guillaume Lemaitre 7896b21562 MNT change default of solver in LogisiticRegression (#13805) 2019-05-08 21:31:39 +08:00
Loïc Estève 3aefc834dc MNT CI Fix for sphinx-gallery 0.3.1 + 404 errors on Debian Jessie packages (#13527)
* Fix for sphinx-gallery 0.3.1.

Figure numbering have been changed to ignore matplotlib figure number.

* Use circleci/3.6 image.

This docker image uses Debian stretch and fixes the problems seen with apt-get update with Debian jessie.

* Install additional fonts.

Seems to be needed to convert doc/images/iris.svg.

* Another missed example using figure number 0.

[doc build]
2019-03-27 16:01:11 +01:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Hanmin Qin c0bb178389 EXA: fix xlabel and ylabel in plot_cv_digits.py (#13067) 2019-01-30 15:41:37 +01: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
Olivier Grisel fc7d6e6986 [MRG] Fix FutureWarnings in logistic regression examples (#12114)
* Be more specific about logistic regression solver in examples

* Use early stopped SGD (faster) and plot cross-validated error for best models

* Fix LR solver in /plot_voting_probas.pyexamples/ensemble/plot_voting_probas.py

* Fix LR solver & scale data in plot_digits_classification_exercise.py

* Use saga solver in plot_logistic_l1_l2_sparsity.py

* Use LBFGS solver in plot_iris_logistic.py

* Use LBFGS in plot_logistic.py

* Use SAGA solver for Logistic Regression Path example

* Use LBFGS solver in plot_classifier_chain_yeast.py

* Use LBFGS solver in plot_rbm_logistic_classification.py

* typo

* typo

* Bump up pandas dependency to 0.17.1

* Bump up examples minimal deps to match pandas 0.17.1

* Fix figure layout for plot_digits_pipe.py

* Version numbers are not decimal numbers

* Set multinomial, no scaling to keep example simple, fix formatting of example doc

* Missing plt.tight_layout() in plot_voting_probas.py

* Missing plt.tight_layout() in plot_logistic.py
2018-09-24 18:22:40 +01:00
Hanmin Qin 8890b50606 [MRG+1] EXA Set cv=5 in examples (#11856)
* EXA Set cv=5 in examples

* small mistake

* [doc build]

* [doc build]

* cross_val*

* [doc build]

* [doc build]
2018-08-20 15:22:42 -04:00
Aarshay Jain a74d31a339 ENH 13 more examples fixed with matplotlib 2.0 (#9029) 2017-06-28 14:56:27 +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
Loïc Estève 719afba518 [MRG] Run more examples as part of the doc generation (#8851)
Also fix errors and flake8 violations of existing examples
2017-05-11 23:42:57 +02:00
Rishikesh 3c6f2b0906 [MRG] Diabetes example with GridSearchCV (#8268) 2017-02-08 00:10:25 +01:00
Aman Dalmia 13cc121b30 [MRG] Remove DeprecationWarnings in examples due to using floats instead of ints (#8040) 2017-02-03 15:21:03 +01:00
Alexandre Gramfort 22c687b525 polish figure 2016-01-16 13:54:10 +01:00
Raghav R V 1d9186d44c ENH/FIX std error is computed for mean across a set of 3 scores, not len(X) 2016-01-16 13:50:01 +01: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 c970fb51e7 COSMIT spelling 2015-01-15 15:09:35 -05:00
Joel Nothman 763af9690a DOC fix line references in tutorial 2014-08-20 21:00:54 +10:00
Joel Nothman 341ca9323b DOC avoid the plot_ prefix in example where no plot
Also fix line reference
2014-08-20 21:00:54 +10: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
hendrik 8f94ae6d0f PY3 fixed examples 2014-02-15 17:05:08 +01:00
Jaques Grobler cbfe851751 example fixes to clean first docstring paragraph of rst code 2013-07-22 15:48:44 +02:00
Lars Buitinck 85ec0fd1ae P3K death to the print statement 2013-02-11 23:11:57 +01:00
Andreas Mueller 2297306edf COSMIT pep8 2013-02-08 22:10:40 +01: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
GaelVaroquaux 76b3d9cc6b DOC: fixed string formatting in example
The string formatting was not valid Python 2.6.

Fixes #1326
2012-11-08 09:36:58 +01:00
GaelVaroquaux 252f73c92e COSMIT: pep8, wording, layout 2012-11-08 09:29:07 +01:00
Corey Lynch c14e9c6899 limited range of C cross validation 2012-11-08 09:15:16 +01:00
Corey Lynch f5cf0eec5e added yticks 2012-11-08 09:15:16 +01:00
Corey Lynch 81ff85dc27 added yticks 2012-11-08 09:15:16 +01:00
Corey Lynch 205d658415 added yticks 2012-11-08 09:15:16 +01:00
Corey Lynch e6fd534aaf Took out a save image line 2012-11-08 09:15:15 +01:00
Corey Lynch 5f40bdf0f6 Used more extreme values of C to show a more pronounced error curve.
See the new curve here: http://imgur.com/UF7I4
2012-11-08 09:15:15 +01:00
Corey Lynch 7a2681d52e Changed example svc kernel to be linear, however the error curve ends up flat under the new kernel. 2012-11-08 09:15:15 +01:00
Tadej Janež 87cf51446b DOC: another improvement to the model selection exercise 2012-10-29 11:31:12 +01:00
Tadej Janež 14bf28ebff DOC: further improvements to the model selection exercise 2012-10-26 12:19:46 +02:00
GaelVaroquaux eca762dd9b DOC: improve the model selection exercise
Fixes #1278
2012-10-25 18:12:15 +02:00
Andreas Mueller a30359ca81 COSMIT Typo. Englais svp. Closes #1090. 2012-09-01 15:49:46 +02:00
Alexandre Gramfort eb63974a95 FIX: C range in plot_cv_digits 2012-06-08 23:14:49 +03:00
Gael Varoquaux 13028c5bb3 BUG: remove n_jobs=-1 from examples 2012-05-07 22:53:44 +02:00