Thomas J. Fan
d400723a21
FEA Add DecisionBoundaryDisplay ( #16061 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-29 16:36:31 +02:00
Thomas J. Fan
d4aad64b1e
MNT Update to black 22.3.0 to resolve click error ( #22983 )
...
* MNT Update to black 22.3.0 to resolve click error
* STY Update for new black version
2022-03-29 12:04:41 +02:00
Jihane
57e3523888
DOC use notebook-style for plot_svm_anova.py ( #22779 )
...
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-18 15:47:03 +01:00
zempleni
d4c96d23ef
Update plot_rbf_parameters.py ( #22724 )
...
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-17 22:20:01 +01:00
Jaya Surya Kommireddy
6016083816
DOC: use notebook-style for plot_svm_regression.py example ( #22534 )
...
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-02-19 18:18:48 +01:00
Thomas J. Fan
1fc86b6aac
MNT Update black to stable version ( #22474 )
2022-02-15 11:36:26 +01:00
Guillaume Lemaitre
e67581c1aa
DOC clarify fit of the models with/without sample weights ( #22319 )
...
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-01-28 15:35:10 +01:00
Sven Eschlbeck
fd18ad2396
MNT speed up example plot_svm_scale_c.py ( #21625 )
2021-11-24 13:51:08 +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
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
Thomas J. Fan
81dde3a6e5
STY Ensures that "flake8 ." works ( #20298 )
2021-06-18 15:46:40 +02:00
Amanda Dsouza
cf4909eb92
DOC simplify SVM margin illustration by chaging plotting style ( #19387 )
2021-02-08 10:02:32 +01:00
Ayush Singh
74f20aedff
DOC Fixed typo in a comment ( #19284 )
2021-01-27 09:48:24 +01: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
Nicolas Hug
8611b9a9af
Fix SVs computation ( #17405 )
2020-07-01 12:33:31 -04:00
Kanika Sabharwal
8f9a027b38
removed redundant tol paramtere from examples ( #14765 )
2019-08-24 17:51:47 -04:00
Hanmin Qin
df7942af77
EXA Add an example about how to obtain the support vectors in… ( #14355 )
2019-07-25 23:51:10 +02:00
Archana Alva
40b2a6c7e3
EXA Removing redundant parameters assignment in examples ( #14360 )
2019-07-14 22:26:41 +08:00
Adrin Jalali
384c8ad3d3
ENH add a break_ties parameter to SVC and NuSVC ( #12557 )
2019-05-03 16:15:49 -04:00
Christos Aridas
943239592e
EXA Remove unused variables ( #13197 )
2019-02-20 12:36:22 +11:00
Hanmin Qin
1deb95a13e
EXA Improve example plot_svm_anova.py ( #11731 )
2019-01-28 12:57:38 +11:00
Joel Nothman
486f8fc543
DOC fix plot_iris references after files renamed
2019-01-17 23:31:48 +11: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
mferrari3
354c8c3bc3
DOC update SVR plot point size and color ( #12877 )
...
With thanks to @rishikksh20 and @ml4713
2019-01-10 09:42:35 +11:00
Mickaël Schoentgen
2df594564d
EXA Fix several DeprecationWarning: invalid escape sequence in examples ( #12924 )
2019-01-05 12:22:36 +08: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
Alex Egg
391209b1a7
DOC fix "class weight" -> "sample weight" comment in plot_weighted_samples.py ( #11804 )
2018-08-14 00:11:21 +03:00
Léo DS
fb0e0fcf5f
[MRG] Fix plot_svm_scale_c.py and plot_discretization_classification.py not to use deprecated plt api ( #11586 )
2018-07-17 15:48:09 -05:00
Hanmin Qin
95628bfefb
EXA Get rid of warnings in plot_svm_anova.py ( #11588 )
2018-07-17 15:06:11 +02:00
Andreas Mueller
0b8d362545
[MRG] Examples deprecations ( #11561 )
2018-07-17 00:08:04 -05:00
Joel Nothman
14764061f8
[MRG] DOC fix some sphinx warnings ( #11241 )
2018-06-21 20:43:21 +10:00
Luke M Craig
b03caaa4f8
DOC fix plotting support vectors in SVM example ( #11231 )
2018-06-11 15:22:48 +10: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
Mohamed Maskani
34f12da6d6
ENH make_blobs takes list/array as n_samples argument ( #10577 )
2018-02-14 20:58:27 +11:00
Nathaniel Saul
675f9f3a7c
DOC show plot and fix comments ( #9925 )
2017-10-15 23:27:35 +11:00
Andreas Mueller
de26c30fad
DOC Fixup of linear svm separating hyperplane plot ( #9471 )
...
* change data, don't regularize, call plt.show
2017-08-06 13:28:08 +10:00
Vathsala Achar
9927982c4e
[MRG+1] DOC Simplifying margin plotting in SVM examples ( #8501 ) ( #8875 )
...
* Simplifying margin plotting in SVM examples (#8501 )
* updated to use contour levels on decision function
* separating unbalanced class now uses a red line to show the change in the decision boundary when the classes are weighted
* corrected the target variable from Y to y
* DOC Updates to SVM examples
* Fixing flake8 issues
* Altered make_blobs to move clusters to corners and be more compact
* Reverted changes converting Y to y
* Fixes for flake8 errors
2017-08-01 15:11:48 -04:00
Andreas Mueller
2277068c88
remove depreated "plt.hold" that defaults to "on". ( #9444 )
2017-07-25 09:03:22 +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
Aarshay Jain
6986e9b5db
[MRG + 1] 18 more examples with matplotlib 2.0 updates ( #8983 )
...
* updated plot_label_propagation_versus_svm_iris.py plot
* updated svm/plot_weighted_samples.py plot
* made semi_supervised/plot_label_propagation_versus_svm_iris.py pep8 compliant
* modified tree/plot_tree_regression.py [size and edgecolor]
* updated tree/plot_tree_regression_multioutput.py [size+color]
* fixed examples/semi_supervised/plot_label_propagation_versus_svm_iris.py for backward compatibility
* neural_networks/plot_mlp_alpha.py - matplotlib2 update
* examples/neural_networks/plot_mlp_alpha.py - pep8 fix
* examples/neighbors/plot_nearest_centroid.py - matplotlib2.0 + pep8 fix
* neighbors/plot_classification.py - matplotlib2.0 + pep8 fix
* examples/neighbors/plot_lof.py - matplotlib2.0 update
* examples/model_selection/plot_underfitting_overfitting.py - matplotlib2.0 + pep8
* examples/mixture/plot_concentration_prior.py - matplotlib2.0 + pep8
* examples/linear_model/plot_logistic_multinomial.py - matplotlib2.0 update
* linear_model/plot_sgd_iris.py - matplotlib2.0 + pep8 fix
* examples/linear_model/plot_sgd_weighted_samples.py - matplotlib2.0 + pep8
* examples/linear_model/plot_sgd_separating_hyperplane.py - matplotlib2.0 update
* examples/feature_selection/plot_permutation_test_for_classification.py - matplotlib + pe8
* examples/linear_model/plot_bayesian_ridge.py - matplotlib2.0 update
* examples/feature_selection/plot_feature_selection.py - matplotlib2.0 update
* examples/feature_selection/plot_f_test_vs_mi.py - matplotlib2.0 + pep8
* examples/feature_selection/plot_f_test_vs_mi.py - matplotlib2.0+ pep8 fix
* examples/model_selection/plot_underfitting_overfitting.py - error fixed
* blue -> black edgecolor fix for 2 examples
2017-06-07 13:23:12 +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
Isaac Laughlin
9743579b5a
[MRG+1] Refactoring plot_iris svm example. ( #8279 )
2017-02-23 21:22:26 +11: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
Jonathan LIgo
726c8d999a
Fix plot_svm_margin example plots ( #8051 )
...
* Corrected shift of separating hyperplane that passes through the support vectors
* Fixed signs on yy_down and yy_up
* PEP 8 spacing correction
* Fixed spaces at end of comment for Travis
2016-12-16 15:56:26 -05:00
E. Lynch-Klarup
5c98812eb0
[MRG + 2] updated iris svm example colormap so the three species can be distinguished ( #7611 )
...
* updated iris svm colormap so the three species can be distinguished
* updated colormap to viridis, which is robust to colorblindness
* changing colormap to coolwarm
2016-10-08 19:09:58 -07:00
Raghav R V
4dbab2680e
results_ --> cv_results_; "test_mean_score" --> "mean_test_score" et al.
2016-09-06 18:46:09 +02:00