Commit Graph

75 Commits

Author SHA1 Message Date
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
Jan Hendrik Metzen c85177ef51 DEL Removing bounds.setter in kernels.py 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen eb54b496d2 REF Removing theta_vars attribute from kernels and using Hyperparameter instances instead 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 4c40f64753 FIX theta_vars correctly supported in KernelOperators 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen d344fa6588 ENH Full support of (deep) get_params() and set_params() in GP kernels 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen d0eb99be76 ENH More efficient computation of K_gradient for anisotropic Matern kernel 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 9b86186ceb COS Removing keyword magic from PairwiseKernel 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen adc7451201 PEP8 Fixing PEP8 issues in gaussian_process package 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen c8f23f401b FIX Using six.string_types instead of basestring (python3 compatibility) 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen bf0e290a38 ADD CompoundKernel for multi-class GP classification 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 37a6348e30 FIX RBF and Matern kernel handle 1d length 1 length-scales correctly 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 9443f948c6 FIX Checking for correct dimensionality of anisotropic kernels 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 8af909b96e FIX Correcly composing theta vector in GP kernels 2015-10-19 18:07:12 +02:00
Jan Hendrik Metzen 4db5142bb8 REFACTOR GP kernel hyperparameters theta and their bounds are log-tranformed
This representation of the search space  is more amenable for 
hyperparameter search, as hyperparameters like
length-scales naturally live on a log-scale.
2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen 698ecf5a01 DOC Backported documentation to kernels module 2015-10-19 18:07:11 +02:00
Jan Hendrik Metzen d0a5ff89f2 FIX GP kernels check for type equality before checking attribute equality 2015-10-19 18:07:11 +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 caa4196c3a DOC Revised docstrings of kernels.py 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 31ef64571e FIX Dealing with anisotropic length-scales correctly 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen e3413b70f7 FIX Kernel property theta can deal with anisotropic RBF kernel 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 79d2194331 REFACTOR Kernel hyperparamters are now set via their name
The property theta, its gradient and bounds are used solely for optimization but not during kernel specification.
2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 1c70e52dd6 ENH Adding diag(X) method to GP kernels.
Using this method rather than np.diag(kernel(X)) or np.apply_along_axis
reduces memory-consumption and speeds up computation considerably
2015-10-19 18:04:56 +02:00