Commit Graph

42 Commits

Author SHA1 Message Date
Gael Varoquaux 5357dfa65a
DOC: document classification example more readable (#22820)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-03-14 09:47:36 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
gpapadok f13015e2fa
DOC Fix notebook-style for plot_document_clustering.py (#22443) 2022-02-14 11:48:02 +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 4abd9f2d9e
API Implements get_feature_names_out for transformers that support get_feature_names (#18444)
Co-authored-by: Andreas Mueller <andreas.mueller@columbia.edu>
Co-authored-by: Andreas Mueller <andreasmuellerml@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-07 10:56:57 +02:00
Roman Yurchak 94f2e9c5d8
DOC simpler block delimitation in sphinx-gallery examples (#17068)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-08 23:23:14 -04:00
ttang131 ec5a9fcf4f DOC Reorganize document classification example into subsections (#14775) 2019-08-26 16:51:34 -04:00
ttang131 3d9fefce4e MAINT Remove redundant parameters in examples (#14792) 2019-08-24 22:53:18 -04:00
Kanika Sabharwal 8f9a027b38 removed redundant tol paramtere from examples (#14765) 2019-08-24 17:51:47 -04:00
Harsh Mahajan 228109cd5c MAINT Remove tolerance paramter from Perceptron (#14558) 2019-08-02 16:11:46 -04:00
Sourav Singh f8e4cc495a ENH Add return_X_y to 20_newsgroups and olivetti_faces (#14259) 2019-07-20 10:30:09 +08:00
Guillaume Lemaitre 8a8e21b2a3 MNT Change the default value of n_estimators in forests (#13803) 2019-05-09 21:19:20 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Feda Curic 52e9cc5add EXA Avoiding TypeError when using --all_categories in plot_document_classification_20newsgroups.py (#12770) 2018-12-14 23:40:49 +08:00
Andreas Mueller 0b8d362545 [MRG] Examples deprecations (#11561) 2018-07-17 00:08:04 -05:00
Loïc Estève 08ff565184 [MRG] DOC run three more examples that use sys.argv (#10301) 2017-12-13 23:02:39 +11:00
syonekura 32fcc364ab [MRG+1] Setting max_iter/tol explicitly for SGD estimators in docs (#9776) 2017-10-04 17:28:32 +02:00
Michael A. Alcorn a571b01ac8 ENH Implement Complement Naive Bayes (#8190) 2017-08-28 23:31:45 +10:00
Roman Yurchak b189254bd9 [MRG + 1] DOC remove deprecated option in HashingVectorizer examples (#9163)
* DOC remplace non_negative=True with alternate_sign=False in
HashingVectorizer examples

* Updated feature_extraction doc
2017-06-21 09:01:55 +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
Roman Yurchak 542c02b158 [MRG+1] Remove the MLComp text categorization example (#8264)
and deprecate load_mlcomp.
2017-02-08 09:29:34 +01:00
Basil Beirouti 3dc8d2f83b DOC additional fixes to 20 newsgroups to prevent TypeError (#8204)
* removed stray space in '__main__ '

* fixed pipeline bug causing TypeError and removed incorrect keyword argument

pipeline was not created properly (both classes had .predict) causing
TypeError to be thrown.

Also removed incorrect keyword argument loss=“l2” for LinearSVC
2017-01-16 00:09:44 +11:00
Basil Beirouti cbddb92e29 removed stray space in '__main__ ' (#8203) 2017-01-15 09:25:17 +01:00
Aman Dalmia 61ec187ea8 [MRG+1] BUG: adding check for ipython notebook (#7924)
* BUG: adding check for ipython notebook

* DOC: adding fix for other examples having the same issue

* DOC: remove unused code

* ENH: added change to make sphinx-gallery tests pass

* FIX: adding fix for document_clustering.py

* DOC: reverting redundant whitespace added to svm_gui.py

* DOC: adding note mentioning the work-around

* DOC: adding note mentioning the workaround

* Fix flake8
2016-12-08 11:53:01 -05:00
Mikhail Korobov 6b381ae3a7 DOC use target_names over named categories in 20newsgroups example (#7423) 2016-10-26 00:20:30 +11:00
Tom Dupré la Tour 2dd5a9a1b0 change last pl to plt 2016-05-10 11:41:13 +02: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
Lars Buitinck 2e4aafd19c MAINT remove my email address
I'm getting too many individual support requests. People should
use the mailing list.
2016-03-04 10:43:41 +01:00
seales 0485ada58b General spelling fixes 2015-12-16 09:46:42 -08:00
johannah 844fbae9e1 added colorblind compatibility 2015-10-23 11:15:35 +02:00
Alexey Grigorev 1defef0379 printing top terms even if LSI is used 2015-05-24 17:03:45 +02:00
Ben Davies 3d8114ecac use a pipeline for pre-processing feature selection, as per best practise 2015-03-05 13:54:38 +00:00
Andreas Mueller 9bc4de8dae some fixes for sphinx and in examples 2015-03-02 12:50:53 -05:00
Joel Nothman 081a554698 FIX P/R/F metrics and scorers are now for binary problems only by default
Scorers for different average parameters have been added.
2014-12-09 13:56:51 +11:00
Lars Buitinck 60e357765d DOC "RF" -> "Random forest" in text classif example 2014-11-30 14:44:35 +01:00
Vjacheslav Murashkin 84d53c67dd FIX handle selection in feature names for example 2014-11-30 18:32:15 +11:00
Mathieu Blondel 67fed69d11 Add random forests to document classification example. 2014-11-21 22:38:31 +09:00
Andreas Mueller 2ca16baa60 Fix using ground truth in silhouette score in document clustering. Closes #3806. 2014-11-05 14:45:00 -05:00
MechCoder 4cd177758f ENH: Merge MultinomialLR into LR with multi_class='multinomial' 2014-08-21 17:37:37 +02:00
Lars Buitinck 13ca2b2859 ENH multinomial logistic regression using L-BFGS 2014-08-21 17:37:37 +02:00
Andreas Mueller 5b247f90e4 move around examples for better structure. 2014-07-17 09:35:30 +02:00