Commit Graph

364 Commits

Author SHA1 Message Date
Theis Ferré Hjortkjær b1fc5c30bd
TST Replace pytest.warns(None) in test_gpc.py (#22960) 2022-03-27 13:22:00 +02:00
Theis Ferré Hjortkjær 5b901fe573
TST Replace pytest.warns(None) in test_gpr.py (#22959)
Co-authored-by: Theis Hjortkjær <theis@Theiss-MacBook-Pro.local>
2022-03-26 14:29:09 -04:00
Dimitri Papadopoulos Orfanos 3d4ee9e9dc
MNT Remove utf-8 encoding declarations (#21260)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 17:59:36 +01:00
Jérémie du Boisberranger d135a0f8db
MNT additional cleaning in test for 1.1 (#22661) 2022-03-03 10:31:02 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Tenavi 3786daf7dc
BUG Fix covariance and stdev shape in GPR with normalize_y (#22199)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Nakamura-Zimmerer, Tenavi (ARC-AF) <tenavi.nakamura-zimmerer@nasa.gov>
2022-02-14 16:18:23 -05:00
MarcoM b519d6c748
ENH Fix AttributeError of compound kernel of Gaussian processes (#22223)
* Catch CompoundKernel in GPC

* added Changelog

* updated the error message and docs

* removed spacebar in docs

* updated docs and test

* Update doc/whats_new/v1.1.rst

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* changelog updated

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-01-18 18:27:30 +01:00
Yuki Koyama 55f0a12ca5
DOC Fix doc by adding a missing closing parenthesis in _gpr.py (#22184) 2022-01-11 11:31:35 -05:00
mandjevant 510fb587c6
DOC fix typo in gaussian_process_regressor (#21653) 2021-11-15 15:14:04 +01:00
Patrick Ferreira 9b210ae8ff
FIX compute y_std and y_cov properly with multi-target in GPR (#20761) 2021-10-20 22:21:39 +02:00
Guillaume Lemaitre 8d81fabec3
DOC move versionadded misplaced (#21162) 2021-09-27 12:55:38 +02:00
赵丰 (Zhao Feng) 20d5eaf426
DOC fix an import in the docsting of RationalQuadratic (#21156) 2021-09-27 11:37:04 +02:00
Juan Martin Loyola 01b9b5ae21
DOC Fix sphinx's links to Glossary (#21094) 2021-09-21 10:01:17 -04:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
baam 0b782bc3ed
DOC Ensures that GaussianProcessRegressor passes numpydoc validation (#20981) 2021-09-09 11:02:52 +02:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
Mateo Noreña 3659a2038f
DOC ensures GaussianProcessClassifier is passing numpydoc validation (#20393)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-29 10:42:22 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Guillaume Lemaitre 7b715111bf
EHN/DOC add reference and small optimizations for GPR (#19952)
Co-authored-by: Ian <iwhalvic@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2021-06-23 18:29:44 +02:00
Olivier Grisel 5b3721c480
MAINT Skip unstable GPR tests on 32 bit Python [cd build] (#20334) 2021-06-23 15:02:09 +02:00
Thomas J. Fan 983cfae8ed
TST USes pytest.approx for floats in test_lml_precomputed (#20330) 2021-06-23 09:42:17 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Guillaume Lemaitre 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02:00
Tom Dupré la Tour f6e6ad2d9e
MNT clean futurewarning for 1.0 | _deprecate_positional_args (#20002)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-05-14 11:30:27 -04:00
iwhalvic 7b1c9afcaf
FIX Use cho_solve when return_std=True for GaussianProcessRegressor (#19939) 2021-04-27 18:23:08 +02:00
Alexandr Fonari b84afe541c
FIX prevent division by zero with constant target in GPR (#19703)
Co-authored-by: Sasha Fonari <fonari@schrodinger.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-04-21 20:39:07 +02:00
Christopher Yeh 7b343ddd53
CLN Improve doc/error consistency for GaussianProcessRegressor (#19687)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-04-12 07:51:22 -04:00
Avi Gupta 071ddc75e9
Removed assert_warns_message from gaussian_process/tests (#19697) 2021-03-19 16:26:15 +01:00
Marco Gorelli e3e4a778d3
MNT Remove absolute imports (#19668) 2021-03-14 12:36:49 +01:00
Juan Carlos Alfaro Jiménez 26c5530e79
MNT Set non-interactive installation mode for the pypy job (#19461) 2021-02-22 21:22:49 +01:00
Atsushi Nukariya 7729cb4b14
FIX RuntimeWarning by dividing by zero in test_kernel_gradient (#19396)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-02-11 16:21:20 +01:00
Thomas J. Fan 8f72c2a334
ENH Adds n_features_in_ checking in gaussian_process (#18743) 2021-01-02 22:31:19 +01:00
Thomas J. Fan 8aa6f076a2
MNT Catches scipy 1.3.0 for using deprecated tostring method (#18755) 2020-11-06 18:58:38 +01:00
Kenny Huynh 0864c58968
DOC Clarify GaussianProcessRegressor default kernel behavior (#18518) 2020-10-05 18:58:14 +11:00
Pete Green 2828a889bb
DOC Resolve confusion about the role of alpha in Gaussian Process Regression (#15990)
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2020-09-17 23:31:17 +02:00
Frans Larsson ecad0c6988
DOC Add None as valid option to random_state for gaussian_process module (#18252) 2020-08-26 11:05:26 +02:00
rauwuckl eb7b15817e
DOC clarify the kernel gradient for GaussianProcesses (#18115) 2020-08-16 09:54:18 +10:00
sadak c5ef2e985c
DOC Fix doc of defaults in gaussion_process._gpr.py (#18075) 2020-08-04 13:58:29 +02:00
Maren Westermann 0550793bd6
FIX inconsistent hyperparameter and bounds issue in GP kernels (#17946) 2020-07-18 11:27:31 +02:00
SylvainLan 8f63e9144f
FIX Add warning for GP's hyperparameters (#12673)
* Add a warning for GP Regressor if optimized hyperparameter matches one of its bounds

* pep8 fix

* Add a test and use np.isclose

* More verbose warning message

* remove print

* Ad a more precise warning and update tests

* fix warning and update tests

* fix test dims

* fix multiple dimensions test

* fix pep8

* change variable name

* add warning for GP classifier

* tests for gpc

* pep8 fix

* put the warning in a function

* add comment to warning function

* update name in gpr and gpc

* update whats_new

* update whats_new

* update whats_new

* remove merge conflict text

* add WhiteKernel

* put the log in the last version
2020-07-17 10:28:17 +02:00
t-kusanagi2 99baa5084f
DOC Add explanation of n_jobs in gaussian_process/_gpc.py (#17716) 2020-06-25 14:31:08 +02:00
Kendrick Cetina 4a97ad49c1
DOC add missing attributes in GaussianProcessClassifier (#17698)
Co-authored-by: Beatriz San Miguel <beatriz.sanmiguelgonzalez@uk.fujitsu.com>
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-24 18:38:28 +02:00
t-kusanagi2 a704fee26d
DOC Add example to CompoundKernel (#17653)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-23 12:05:43 +02:00
Allan D Butler 4ea7fd687f
DOC Adding examples to gaussian_process.kernels.Hyperparameter docstring (#17450) 2020-06-22 15:48:58 +02:00
Stephan Steinfurt d9ae80eec6
DOC Add example for PairwiseKernel (#17601)
* Add example for PairwiseKernel

* Remove empty line

* Do not return standard deviation

It is not really needed in this minimal example.

* Implement classifier example
2020-06-17 12:38:14 +02:00
Nicolas Hug ac8cbb3799
[MRG] More deprecation for 0.24 (#17142)
* normalize_components in sparsePCA

* changed default strategy of Dummy to prior and removed outputs_2d ttribute

* removed usage of None to drop estimator in ensemble and behaviour param of IsolationForest

* remove support for drop=None in Voting

* removed some warning decorators

* remove feature_extraction.extract_patches

* removed VectorizerMixin and copy parameter from TFIDFVectorizer

* kernel.set_params now raises attributeerror

* removed fig from plot_partial_dependence

* removed iid parameter of search estimators

* removed brier_scorer

* raise error in split when shuffle is False and random_state is not None

* removed MultiOutputEstimator

* removed base classes of NaiveBayes

* removed drop from pipeline

* removed utils in random_projection

* removed presort and classes_ in trees

* flake8

* fixed some tests

* flake

* fixed docstring

* fixed other one

* some left

* mmmm
2020-05-20 16:04:14 -04:00
Adrin Jalali 7e15285d2e
API make gaussian_process __init__ params kwarg (#16870) 2020-04-20 13:48:36 -04:00
Lam Gia Thuan e9b7883e12
Fix wrong optimization for Log Likelihood Gradient (#16047)
Fixes #16046
2020-03-18 09:34:50 +11:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11:00