Commit Graph

65 Commits

Author SHA1 Message Date
Peter Hull a6603bcd89
DOC Use correct name for OAS (#27883) 2023-12-01 17:21:50 +00:00
Guillaume Lemaitre 3597f0bb5d
ENH accept class_of_interest in DecisionBoundaryDisplay to inspect multiclass classifiers (#27291)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
2023-10-11 10:29:57 +02:00
Guillaume Lemaitre cdcfcbeb57
DOC add narrative description and remove deprecation warning (#27440) 2023-09-28 12:52:08 +02:00
Stefanie Senger c634b8abbb
MNT Deprecate SAMME.R algorithm from AdaBoostClassifier (#26830)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-07 21:54:52 +02:00
David Brochart 6363d51228
DOC Fix typo in plot_classifier_comparison.py (#27149)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-08-24 12:28:56 +00:00
Tamara 7c6e1e9271
DOC Add random_state to all classifiers in plot_classifier_comparison.py (#26968)
Co-authored-by: AnnaWey <annawey@mail.de>
2023-08-02 14:22:46 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos 6ca4970ca2
MAINT Remove encoding declarations: `# -*- coding: utf-8 -*-` (#26467) 2023-05-31 17:26:00 +02:00
Christine P. Chai d4e7158bca
DOC modified the graph for better readability (#25644) 2023-02-20 20:23:21 +00:00
humahn 567a4177f2
DOC Use matplotlib's kwarg in plot_lda_qda (#24809) 2022-11-02 15:30:32 -04:00
João David b7f3fd6887
DOC convert confusion matrix to y_true/y_pred for classification_report example (#24711)
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
2022-10-26 15:22:18 +02:00
Tim Head 1d70e1883f
DOC Use pipeline in classifiers example (#24399) 2022-09-09 10:38:19 +02:00
Christine P. Chai 26800e996f
DOC Added linestyle into plot_lda example (#23869)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-07-20 10:59:31 +02:00
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
Bijil Subhash a3893d3bdc
DOC update notebook style for plot_lda_qda (#22528)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-03-18 16:51:54 +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
Guillaume Lemaitre 8c6a045e46
ENH/DEP add class method and deprecate plot function for confusion matrix (#18543)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2021-01-22 19:57:41 +01:00
yzhenman 2800878993
DOC fix dataset used for visualization in digits classification example (#19095) 2021-01-04 11:04:55 +01:00
hugorichard 370e5452b5
FEA Allow passing custom covariance estimators to LDA (#14446)
Co-authored-by: hugo richard <hugo.richard@inria.fr>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-09-17 08:40:41 -04:00
Lucy Liu 0deaa3b4e1
DOC Amend plot_digits_classification.py to use notebook style (#17016) 2020-05-20 16:09:59 +02:00
Thomas J Fan e650a207ef ENH Adds plot_confusion matrix (#15083) 2019-11-14 14:43:54 +01:00
Victor Luzgin 538fa63cc3 MNT use train_test_spkit in example (#15411) 2019-11-04 09:48:36 -05:00
Johann Faouzi d710f73096 DOC Fix suptitle in LDA_QDA example (#14130) 2019-06-22 09:07:43 -07:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08: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
Zhuyi Xue ba4720a01d DOC improved example plot in plot_lda_qda.py (#12942) 2019-01-14 23:15:19 +08: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
Andreas Mueller 0b8d362545 [MRG] Examples deprecations (#11561) 2018-07-17 00:08:04 -05:00
Andreas Mueller ea05295a1c EXA Don't use deprecated store_covariances (#11383) 2018-07-04 09:28:19 +08:00
Rajendra arora 78ccdd1d6f DOC Improve comment in plot_classifier_comparison.py (#10256) 2017-12-05 23:55:00 +08:00
Joel Nothman 468d6e71aa Remove inappropriate warm_start (#9638) 2017-08-29 09:58:55 +10:00
Aarshay Jain 1d4e18a1a7 [MRG + 1] 10 more examples fixed with matplotlib 2.0 updates (#9030)
* examples/covariance/plot_outlier_detection.py - matplotlib2.0 update

* examples/cluster/plot_kmeans_silhouette_analysis.py - matplotlib2.0 update

* examples/cluster/plot_birch_vs_minibatchkmeans.py - matplotlib2.0 + pep8 fix

* examples/cluster/plot_cluster_iris.py - matplotlib2.0 update

* examples/cluster/plot_agglomerative_clustering.py - matplotlib2.0 update

* examples/cluster/plot_ward_structured_vs_unstructured.py - matplotlib2.0 update

* examples/cluster/plot_kmeans_assumptions.py - matplotlib2.0 update

* examples/classification/plot_lda_qda.py - matplotlib2.0 + pep8 fix

* examples/calibration/plot_calibration.py - matplotlib2.0 update

* examples/plot_johnson_lindenstrauss_bound.py - matplotlib2.0 update

* flake8 changes

* reversing changes for plot_kmeans_assumptions & plot_agglomerative_clustering

* cluster/plot_cluster_iris.py - major fixes

* examples/cluster/plot_cluster_iris.py - flake8 fix

* examples/cluster/plot_cluster_iris.py - 3d projection error fix

* cluster/plot_cluster_iris.py - elevation and azimuth setting
2017-06-21 16:04:53 +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
Rishikesh 0ee92d87ee [MRG] Modify Classification module example matplotlibv2 (#8516) 2017-03-13 10:58:12 +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
Aman Dalmia 6f1972eca1 [MRG] DOC explaining the physical meaning of the ellipsoids (#7856) 2016-11-17 09:43:47 +11:00
Robert Lutz 0c879ba551 [MRG+1] Fix: Replace pylab with matplotlib.pyplot #6754 (#6762)
* Fix: Replace pylab with matplotlib.pyplot #6754

 - one instance of 22 occurrences of pylab replaced with matplotlib.pyplot
 - bench_glm.py now free of pylab references
 - code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 21 remaining occurrences of pylab replaced with
    matplotlib.pyplot
- bench_glmnet.py now free of pylab references
- code does not execute for extraneous reason: ImportError: No module named
    glmnet.elastic_net

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 19 occurrences of pylab replaced with matplotlib.pyplot
- bench_lasso.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 18 occurrences of pylab replaced with matplotlib.pyplot
- bench_plot_neighbors.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- one instance of 17 occurrences of pylab replaced with matplotlib.pyplot
- bench_plot_omp_lars.py now free of pylab references
- code does not execute for extraneous reasons:
    - File "bench_plot_omp_lars.py", line 111, in <module>
    - ax = fig.add_subplot(1, 2, i)
    - ValueError: num must be 1 <= num <= 2, not 0
    - line 111 should probably be ax = fig.add_subplot(1, 2, i+1)

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_plot_parallel_pairwise.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_plot_ward.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_sgd_regression.py now free of pylab references
- code executes properly

* Fix: Replace pylab with matplotlib.pyplot #6754

- bench_tree.py now free of pylab references
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_glm.py clean

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_glm.py clean of pl
- code does not execute for extraneous reasons

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_lasso.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_neighbors.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_omp_lars.py clean of pl
- code does not execute for extraneous reasons

* fix: Fix bug that prevented graphs from displaying

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_parallel_pairwise.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_plot_ward.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_sgd_regression.py clean of pl
- code executes properly

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- bench_tree.py clean of pl
- code executes properly

* docs: removed pylab references from comments

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed pylab references from comments

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- mlcomp_sparse_document_classification.py clean of pl

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_gpr_noisy_targets.py clean of pl
- code does not execute for extraneous reasons
  - File "examples/gaussian_process/plot_gpr_noisy_targets.py", line 31, in
      <module>
  - from sklearn.gaussian_process import GaussianProcessRegressor
  - ImportError: cannot import name GaussianProcessRegressor

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_gpc_isoprobability.py clean of pl
- code does not execute for extraneous reasons
  - File "examples/gaussian_process/plot_gpc_isoprobability.py", line 24, in
      <module>
  - from sklearn.gaussian_process import GaussianProcessClassifier
  - ImportError: cannot import name GaussianProcessClassifier

* docs: removed all pylab references

- replaced with matplotlib.pyplot
- pl --> plt

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* refactor: Replace pl with plt

- replace instances of pl (as on import pylab as pl)
  with plt (as in import matplotlib.pyplot as plt)
- plot_sparse_coding.py clean of pl
- code executes properly

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* docs: removed all pylab references

- replaced with matplotlib.pyplot

* style: Indent properly

* style: indent properly

* style: Indent properly

* docs: Add missing .pyplot

* docs: Fix typo

* style: Indent properly
2016-05-10 11:34:33 +02:00
Saiwing Yeung 7c0ebbc226 FIX does not draw the ellipse! #6640 (#6757)
* FIX does not draw the ellipse! #6640

* Give ellipses a higher z-order, yellow border, and thicker border.

* Add an alpha level to the markers so that it is easier to tell how
many there are.

* Change false positive to asterisks so that they have similar sizes as
the true positives.

* Fix line too long issue
2016-05-05 09:44:17 +02:00
Saiwing Yeung c5fd5cbb7e DOC: fixed typos and one style issue in plot examples
The comment in a few example plots refer to "the mesh [x_min, m_max] x
[y_min, y_max]" when it should be "x_max".

Also fixed the spacing in plot_random_forest_embedding.py `[x_min,
x_max] x [y_min, y_max]` to `[x_min, x_max]x[y_min, y_max]` to comply
with the coding style of other files with similar code (like those in
the current pull request).
2016-04-25 11:59:40 +08:00
Jeroen Van Goey 7e8f8b7ba9 Update plots_digits_classification.py
DOC Update comment in plots_digits_classification
2016-04-07 16:02:15 +02:00
Andreas Mueller 5b1aca08c2 MAINT Don't use deprecated 1d X (or deprecated matplotlib stuff) in examples. 2015-12-10 12:11:48 -05: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 965a71517f Merge pull request #5214 from glennq/mlp_refactoring
[MRG + 2] Mlp with adam, nesterov's momentum, early stopping
2015-10-23 19:22:21 +02:00
johannah 824115a4e5 Added colorblind compatibility to classification 2015-10-22 18:32:23 +02:00
Andreas Mueller 3891af8d99 iterate, improve. Nesterov's momentum. 2015-10-21 14:43:38 -04:00
Elvis DOHMATOB 18f4a29114 ENH: fixes issue #5484 2015-10-20 15:48:38 +02:00
Jan Hendrik Metzen 5b47b044fa DOC Adding GPC to plot_classification_probability.py example 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 1790b944b6 DOC Adding GPC to plot_classifier_comparison.py script and enabling warm_start 2015-10-19 18:07:10 +02:00