Commit Graph

99 Commits

Author SHA1 Message Date
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
Jan Hendrik Metzen bcd4b72897 REFACTOR Remove theta_ attribute from GPR and GPC
It can be accessed instead via kernel_.theta
2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen 41cbb29176 DOCAdapting GP examples to changed hyperparameter representation 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen cb9935b729 DOC Extending further the GP documentation 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen a5c1187737 DOC Documentation of the CO2 example 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen d26c355374 DOC Adding documentation for GP kernels 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen a9a884d5b2 DOC Revised plot_gpc example 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen 0b1fb338c7 DOC Adding example comparing kernel ridge with GPR. 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen 54df4174b7 FIX Fetching CO2 data from mldata 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen 04770b1ea1 DOC Adapted old example of fitting with noisy targets to new GPR class 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 02ab93e809 ENH GPR can use individual noise-levels for each datapoint 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen c961392424 REFACTOR Changed order of l and alpha in RationalQuadratic kernel 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen ebf3f05994 REFACTOR Removed literal form of specifying bounds for ConstantKernel 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 82ec208c65 DOC Adapted GP examples to changes in kernel module 2015-10-19 18:07:10 +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
Jan Hendrik Metzen ff92bc9bd3 FIX Adapted examples and tests to GPC.predict_proba() adapted return shape 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 141eb0b27c REFACTOR Rename GPR method sample to sample_y 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 27bd525c96 DOC Reorganizing gaussian_process examples 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen a3abc09456 ENH Added Exponentiation kernel (DotProduct no longer has internal degree) 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 403b5f1412 REFACTOR REnamed kernel property params to theta 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 9f6e48f6cc REFACTOR GP kernels use separate specification of bounds and params (no joint param_space) 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen d0bc5dc35c FIX GPs do not modify kernel attribute but store optimized kernels in kernel_ 2015-10-19 18:04:55 +02:00