Commit Graph

35 Commits

Author SHA1 Message Date
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
Joaquin Vanschoren 61feb5ea27
DOC Improved explanation of SVM-RBF behavior (#18538)
* Improved explanation of SVM-RBF behavior

The previous explanation of the results contained an incorrect interpretation. The description is updated as discussed here: https://github.com/scikit-learn/scikit-learn/issues/18532

* Making linter happy

* Update examples/svm/plot_rbf_parameters.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

* Update examples/svm/plot_rbf_parameters.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

* making linter happy

* whitespace

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-10-05 18:08:00 -04:00
Harry Scholes ffb4feafc9
DOC fix missing space in example (#18321) 2020-09-02 11:18:44 +02:00
Hanmin Qin 68b981f183 MNT Flake8 fix for #8957 (See the Travis failure)
I think there's concensus on not to introduce new flake8 errors
cc @amueller
2018-05-24 23:14:58 +08:00
Chris Foster 974ceb51ba [WIP] Proposed ``C`` parameter clarifications in RBF SVM parameter example (#8957)
* Proposed rewrite

* Update plot_rbf_parameters.py

use phrasing suggested by @vene.
2018-05-23 15:50:15 -04:00
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10: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
Rishikesh cdd693bf95 [MRG] Modify Svm examples for matplotlibv2 comp (#8456)
* Modify plot_custom_kernel for matplotlib v2 comp

Add `edgecolors` attribute in scatter plot for better visualization
in matplotlib version 2

Issue: #8364

* Modify plot_oneclass.py for matplotlib v2 comp

Add `edgecolors` attribute to scatter plot for better
visualization in matplotlib version 2

Issue: #8364

* Modify plot_rbf_parameters for matplotlib v2

Add `edgecolors` attribute to scatter plot for
better visualization.

Issue: #8364

* Modify plot_separating_hyperplane_unbalanced for matplotlib v2

Add `edgecolors` attribute to scatter plot for better visualization.

Issue: #8364

* Modify plo_svm_kernels for matplotlib v2

Add `edgecolors` attribute to scatter plot for better
visualization.

Issue: #8364

* Modify plot_svm_margin for matplotlib v2 comp

Add `edgecolors` attribute to scatter plot for better
visualization.

Issue: #8364

* Modify plot_svm_nonlinear for matplotlib v2

Add `edgecolors` attribute to scatter plot for matplotlib
version 2 compatibility

Issue: #8364

* Modify file for remove flake8 error

Remove extra white space.

Issue: #8364
2017-03-04 11:22:00 -05:00
Raghav R V 4dbab2680e results_ --> cv_results_; "test_mean_score" --> "mean_test_score" et al. 2016-09-06 18:46:09 +02: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
Raghav R V afd5d18b0c [MRG] ENH Restructure grid_scores_ into a dict of 1D arrays
Also, DOC what's new section for model_selection changes
2016-06-16 12:23:04 +10:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
rasbt 25a217b016 small typo fix "radius" in rbf kernel 2015-08-16 18:34:54 -04:00
edson duarte bc5155f080 Fixed small typos in SVM examples. 2015-07-14 22:37:08 -03:00
Olivier Grisel 6e0b95fd6d ENH better RBF parameters heat map 2015-01-13 20:35:07 +01: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 dd15031fcd DOC explanatory sentence for svm grid search example 2013-11-10 15:40:35 -08:00
Olivier Grisel b0035bf9e8 Rename cv_scores(_) back to grid_scores(_) to keep the name free for a future refactoring 2013-07-28 17:10:14 +02:00
Andreas Mueller 0c94b55c63 ENH add randomized hyperparameter optimization 2013-03-03 20:56:39 +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
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
Andreas Mueller c0a057843c ENH rename Scaler to StandardScaler everywhere 2012-09-23 17:31:15 +01:00
Daniel Duckworth 9abb2c7c09 Python 2.6 bugfix for plot_rbf_parameters.py 2012-05-31 20:41:10 -07:00
Daniel Duckworth 069bf4a383 Fixed bug in plot_rbf_parameters.py causing only one figure to show 2012-05-13 14:19:32 -07:00
Daniel Duckworth 5fab80928f split plot_rbf_parameters.py's plot into two
- plot_rbf_parameters.py originally had two plots
  combined into one.  They have been split apart
  again.
2012-05-13 13:41:48 -07:00
Daniel Duckworth e27b310903 Merged svm parameter selection visualization
-deleted plot_svm_parameters_selection
-merged its contents into plot_rbf_parameters
2012-05-11 15:37:04 -07:00
Alexandre Gramfort 5a7f07adae FIX : fix SVM examples with new scale_C=True 2012-02-22 15:46:54 +01:00
Olivier Grisel b504ae451e avoid pl.set_cmap and align colors of colormesh with scatter 2012-02-10 09:27:52 +01:00
Gael varoquaux e385daeed6 COSMIT 2011-12-18 09:25:16 +01:00
Alexandre Gramfort 28e4918a13 MISC: typos + subplot adjust 2011-12-17 08:58:24 +01:00
Andreas Mueller 034ca3f9f2 Example illustrating parameters of an RBF SVM 2011-12-16 23:23:41 +01:00