Commit Graph

99 Commits

Author SHA1 Message Date
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
赵丰 (Zhao Feng) 20d5eaf426
DOC fix an import in the docsting of RationalQuadratic (#21156) 2021-09-27 11:37:04 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +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
Marco Gorelli e3e4a778d3
MNT Remove absolute imports (#19668) 2021-03-14 12:36: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
rauwuckl eb7b15817e
DOC clarify the kernel gradient for GaussianProcesses (#18115) 2020-08-16 09:54:18 +10: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 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
Bharathi Srinivasan 6464e15f61
[MRG] Document bounds='fixed' in GP kernels (#16209) 2020-02-21 11:21:37 +01:00
Corrie Bartelheimer fa9cf22b27
DOC add examples for Gaussian Processes and improve User Guide (#15221) 2020-02-13 09:11:02 -05:00
lopusz 62ce1bad32
DOC follow doc formatting guideline for module gaussian_process (#16415) 2020-02-12 12:45:48 +01:00
Reshama Shaikh e1f7b631ce ENH Allow usage of nu=inf in Matern kernel (#15972)
Co-authored-by: Sam Dixon <sam.dixon@berkeley.edu>
2019-12-26 12:04:54 +01:00
Yu-Hang "Maxin" Tang 8360786895 ENH Allowing Gaussian process kernels on structured data (#15557) 2019-11-15 16:07:36 -08:00
SylvainLan a7a834bdb7 ENH improved error anisotropic RationalQuadratic kernel (#12603) 2019-08-08 18:22:00 +10:00
Jose Ortiz e4f75e10a4 Improve WhiteKernel's vague description (#13606) 2019-08-06 12:53:41 -04:00
Joel Nothman 0279108bef
API don't default get_params output to None in the future (#14464) 2019-07-28 23:37:47 +10:00
Stephen Cowley 612a04e4e4 DOC Fix more formatting inconsistencies (#13787) 2019-05-05 22:05:58 +08:00
Roman Yurchak 0e3bb17e62 MAINT Run pyupgrade following Python2 deprecation (#12997) 2019-02-08 20:13:34 +08:00
Rüdiger Busche d300f406ae MAINT Simplify super() calls (#12812) 2019-01-10 22:27:06 +01:00
Roman Yurchak acb8106472 MNT Use list and dict comprehension (#12668) 2019-01-08 09:32:34 +11:00
Andreas Mueller 952ef6637a MRG Drop legacy python / remove six dependencies (#12639) 2019-01-03 15:50:05 +02:00
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
ZJ Poh adddf00433 [MRG] np.ones -> np.full (#11628) 2018-07-23 09:49:01 +02:00
Nicolas Hug e860fd2d12 DOC parameters for gaussian_process and linear_model modules (#11415) 2018-07-15 16:06:05 +10:00
Roman Yurchak d9a0774afc MAINT Always import signature from sklearn.utils.fixes (#11019) 2018-04-24 09:27:45 +10:00
ksemb 77418a0275 MAINT Fix escape sequences that are deprecated in Python 3.6 (#10578)
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-02-07 10:41:21 +11:00
Hanmin Qin e8a15d5444 DOC fix the equation in gaussian_process.kernels.ExpSineSquared (#9224) 2017-06-29 13:31:48 +02:00
Loïc Estève b89fcd303b Fix tests on numpy master (#8355)
numpy.apply_along_axis has changed behaviour when the function passed
in returns a 2d array
2017-02-15 23:22:49 +11:00
Joel Nothman 8570622a44 [MRG+1] DOC insert spaces before colons in parameter lists (#7920)
* DOC insert spaces before colons in parameter lists

Complies with numpydoc to improve rendering and automatic quality
assurance such as #7793. Affects listings of Parameters Attributes,
Returns.

Performed with the help of:

    grep -nE '^(    )+[a-zA-Z][a-zA-Z0-9_]*: ' sklearn -R | grep -v -e
    externals -e tests | grep -v -e default: -e else: -e Warning: -e Note:
    -e TRAIN: -e Default: -e True: -e False: -e DOI: -e In: | gsed
    's|\([^:]*\):\([0-9]*\):\([^:]*\):\(.*\)|--- a/\1\n+++ b/\1\n@@ -\2,1
    +\2,1 @@\n-\3:\4\n+\3 :\4|' | git apply --unidiff-zero -

* DOC fix numpydoc format for param
2016-11-25 10:59:22 +01:00
Andreas Mueller 60a1356f31 [MRG + 1] More versionadded everywhere! (#7403)
* insert versionadded versionchanged directives in docstrings for 0.18

indicate where exception classes were moved from

* moved versionadded in the proper places
2016-09-27 16:19:47 -04:00
Manoj Kumar 49fb295561 [MRG+2] Fix repr on isotropic kernels when a 1-D length scale is given (#7259) 2016-09-03 22:02:07 +10:00
Manoj Kumar c31ad7ada3 [MRG + 1] [MAINT] Remove non-trivial logic during kernel initialization (#6963)
* Make sure set_params does not break clone on kernels

For example, in kernels such as RBF, using set_params with a
length_scale of different length, used to break clone because of
the non-trivial modification of length_scale in the constructor.

This PR resolves this by moving this logic to __call__ and
making hyperparameter attributes properties.

* Fix tests by using get_params and implement __eq__ for Hyperparameter

* Explain XXX

* Check that hyperparameters are equal after non-trivial set_params

* Refactor into _check_length-scale
2016-08-16 23:43:58 -07:00
Nelson Liu d2aaf0f4bb doc: fix spellings of 'license' 2016-03-31 17:25:31 -07:00
Olivier Grisel 4ae03d1bab Merge pull request #5701 from ziky90/gp-comparison-fixes
[MRG + 1] Fix 5663: string comparison on arrays in new Gaussian process
2016-02-03 16:34:11 +01:00
Andreas Mueller 2653833a07 DOC some fixes to the doc build. 2015-11-03 12:23:23 -05:00
Zikes, Jan b9fdeb056d shortened if condition based on glouppe's suggestion 2015-11-03 15:35:10 +01:00
Zikes, Jan 149aade763 Fixed string comparison on arrays in new Gaussian process described in issue #5663 2015-11-03 14:50:17 +01:00
Raghav R V 8878088b19 FIX inspect.argspect is deprecated; use signature 2015-10-24 10:27:26 +02:00
Jan Hendrik Metzen edc4a651c6 ADD Mixins for normalized and stationary kernels 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen c3a41a310f FIX String comparison via equality and not identity in Hyperparameter.__init__ 2015-10-19 18:07:14 +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 f76e64c9c7 FIX Fix failing tests (doctest, order of hyperparameters, pairwise_kernels) 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 1813322d0a DOC Documenting GP kernel API 2015-10-19 18:07:14 +02:00