Commit Graph

120 Commits

Author SHA1 Message Date
Dimitri Papadopoulos Orfanos ee5a1b69d1
DOC, MNT Typos found by codespell (#22906) 2022-03-20 19:16:39 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Guillaume Lemaitre 2a36ea74f9
DOC convert to notebook the basic example introducing GPR (#20360)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-03 18:49:48 +01:00
Guillaume Lemaitre 16e027bfc3
DOC convert to notebook style CO2 GPR regression (#20358) 2021-11-03 18:49:26 +01:00
Guillaume Lemaitre 79fae0cc9d
DOC convert to notebook style Kernel ridge GPR example (#20357)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-03 18:47:34 +01:00
Guillaume Lemaitre 3611c938c9
DOC convert to notebook GPR regression with noise estimation (#20359)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-11-03 18:45:38 +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
赵丰 (Zhao Feng) 3c6805ad6e
DOC remove redundant code in GPR example (#21133) 2021-09-24 13:57:32 +02:00
Guillaume Lemaitre c65699bb0b
DOC convert to notebook style prior posterior GPR example (#20361)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-07-19 18:02:34 +02:00
Thomas J. Fan 81dde3a6e5
STY Ensures that "flake8 ." works (#20298) 2021-06-18 15:46:40 +02:00
Thomas J. Fan f286e27798
DOC Fixes failing examples (#18180) 2020-08-18 08:52:41 +02:00
Maren Westermann 0550793bd6
FIX inconsistent hyperparameter and bounds issue in GP kernels (#17946) 2020-07-18 11:27:31 +02:00
Chiara Marmo 0c2da0cb48 DOC Fix various sphinx warnings. (#15692) 2019-11-21 18:34:16 -05:00
Yu-Hang "Maxin" Tang 8360786895 ENH Allowing Gaussian process kernels on structured data (#15557) 2019-11-15 16:07:36 -08:00
Thomas J Fan 4d749ea490 CLN Uses public API instead of deprecated modules in examples (#15390) 2019-10-29 10:59:02 +08:00
Archana Alva 40b2a6c7e3 EXA Removing redundant parameters assignment in examples (#14360) 2019-07-14 22:26:41 +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
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08: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 6463406490 MNT Unused import in plot_gpr_co2.py 2018-09-26 16:37:29 +08:00
Max Copeland 2242f4c1d0 EXA use openml fetcher in plot_gpr_co2.py example (#12004) 2018-09-08 16:52:01 +02:00
Adrin Jalali b74a76c11e DOC reduce plot_gpr_prior_posterior.py warnings(#11664) 2018-08-22 10:03:44 +10:00
Joel Nothman fc56da504d Deprecate fetch_mldata (#11466)
* API Deprecate fetch_mldata and update examples
* Use pytest's filterwarnings
* Rm unused import
* Remove broken doctest
* Refer user to openml URL
* DOC whatsnew tweak
2018-08-18 19:27:48 +03:00
Andreas Mueller b0e91e4110 [MRG] Examples fixes (#11539)
* fix contours in gpc xor example

* use LinearSVC in plot_column_transformer
2018-07-16 10:46:43 +02:00
Nicholas Nadeau, P.Eng., AVS 3e26fc63be MAINT Fixing Typos (#11017) 2018-04-24 09:32:25 +10:00
David Kirkby 2afcc36926 Fix propagation of observation error to GP model (#10026) 2018-01-18 15:34:01 -08:00
Hanmin Qin 32ac22870d [MRG+1] Fix warnings in lgtm.com (remove redundant code) (#9719) 2017-09-14 11:42:58 +02:00
Rishikesh d9b525ac6b [MRG+1] Modify gaussian_process examples for matplotlib v2 comp (#8394)
* Modify plot_gpc_xor.py for matplotlib v2 comp

Add edgecolors option in scatter plot

Issue: #8364

* Modify plot_gpr_noisy.py for matplotlib v2 comp

Add edgecolors option in scatter plot

Issue: #8364

* Modify plot_gpr_prior_posterior for matplotlibv2

Add edgecolors attribute in scatter plot

Issue: #8364

* Modify plot_gpc.py for matplotlib v2 comp

Add edgecolors attribute in scatter plot.

Issue: #8364

* Modify plot_gpr_noisy.py to remove flake8 error

Modify file to pass travis build

* Cosmetic change in plot_gpr_prior_posterior

Reduce `alpha` for better plot.

Issue: #8364

* Modify plot_gpr_noisy.py for better visualization

Modify colorbar in contour plot.

Issue: #8364
2017-06-19 21:17:15 +02:00
Rishikesh 78149c4085 DOC Modify plot_gpc_iris.py for matplotlib v2 (#8385)
Add edgecolors option in scatter plot

Issue: #8364
2017-02-21 21:37:42 +11:00
Okhlopkov Daniil Olegovich 83beb5f35f DOC fix copy-paste error (#8037)
write correct comment
2016-12-12 08:23:20 +11:00
Gael Varoquaux 1837224751 Merge pull request #6613 from nelson-liu/correct_license_spelling
[MRG+1] DOC: fix spellings of 'license'
2016-06-15 13:58:59 +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
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
Andreas Mueller 2653833a07 DOC some fixes to the doc build. 2015-11-03 12:23:23 -05:00
Raghav R V f67e911124 DOC Modify documentation/examples for the new model_selection module 2015-10-29 16:49:23 +01:00
johannah d15f322111 Added colorblind compatibility 2015-10-23 19:47:32 +02:00
Rachit Kansal 7a2e2d8536 Tweaking the legend of GP plot in plot_compare_gpr_krr.py 2015-10-21 15:21:29 +05:30
Perrine Letellier eaf97bf4ea colorbar doesn't handle label parameter 2015-10-20 13:32:24 +02:00
Jan Hendrik Metzen e2a340a4ee REF More meaningful names for hyperparameters of GP kernels 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 2dd1f285b9 PEP8 Making pep8 and pyflakes happy 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 65555b300b REF Renaming sigma_squared_n to alpha (consistency with Ridge) 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen c6db24e56f REF Several small changes based on @eickenberg's suggestions 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen 992b8c474c DOC Updating GPC XOR example (showing also results for DotProduct kernel) 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen 83bc6c2440 ENH Adding max_iter parameter for Newton iteration in GPC 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen f6d8686eba ADD Example illustrating Gaussian process classifier on iris dataset 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen daa90c22d3 ENH Adding Matern kernel for Gaussian Processes 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 2839f66933 REFACTOR normalize_y in GPR does not modify standard-deviation 2015-10-19 18:07:12 +02:00