Commit Graph

51 Commits

Author SHA1 Message Date
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
Roman Feldbauer 9b39c4c4d2
TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +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
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
SylvainLan a7a834bdb7 ENH improved error anisotropic RationalQuadratic kernel (#12603) 2019-08-08 18:22:00 +10: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
Nicolas Hug f3eb9d2206 [MRG] MNT removing assert_equal, etc -- continued (#14232) 2019-07-02 14:53:51 +10:00
Adrin Jalali 19c068a2ec MNT towards removing assert_equal, etc (#14222) 2019-07-01 09:13:32 -04:00
Adrin Jalali 2bd87f6ed8 Remove python < 3.5 from CI (#12746) 2018-12-14 10:53:12 +01:00
Roman Yurchak f049ec72eb TST Pytest parametrization part3 - feature_extraction, gaussian_process modules (#11143) 2018-06-04 22:23:29 +08:00
Roman Yurchak d9a0774afc MAINT Always import signature from sklearn.utils.fixes (#11019) 2018-04-24 09:27:45 +10:00
Namiya 39076ff385 fix deprecated comparison to string in GP (#8518) 2017-03-04 13:37:11 -08:00
Loïc Estève 0ec6664ff1 [MRG] Make tests runnable with pytest without error (#8246)
* Make tests runnable with pytest without error.

Errors were due to pytest quirks with (deprecated) yield support.

* Add pytest build on Travis

and tweak pytest settings in setup.cfg

* Tweak comment
2017-02-20 13:08:09 +01:00
Paul Ganssle 9f6b849c35 TST Change rstrip() to truncation in test function (#8237) 2017-01-27 08:41:03 +11:00
Mikhail Korobov 19aebe2431 use == instead of 'is' for string comparison (#7422) 2016-09-15 09:42:34 +10:00
Andreas Mueller 3d1a2fdb5c COSMIT don't use docstrings in tests (gp kernel tests) (#7399) 2016-09-13 13:17:38 +02: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
giorgiop 58c859e7ba Limit the number of thread and force install libgfortran 2016-02-06 18:56:03 +01:00
giorgiop 6470a83f99 MAINT speed up test_kernels 2016-02-06 18:55:23 +01:00
Raghav R V 8878088b19 FIX inspect.argspect is deprecated; use signature 2015-10-24 10:27:26 +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 98e8093c93 FIX Further python3 related fixes 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 55d26aa9a6 FIX Fixing test_kernel_theta 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 eb54b496d2 REF Removing theta_vars attribute from kernels and using Hyperparameter instances instead 2015-10-19 18:07:14 +02:00
Jan Hendrik Metzen 3f1a0f1a5a TST Adding two unittests for testing GP kernels
test_kernel_versus_pairwise() checks that GP kernels can also be used as pairwise kernels.
test_set_get_params() checks that set_params()/get_params() is consistent with kernel.theta.
2015-10-19 18:07:14 +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 768c81fd1b TST Further GP-related fixes 2015-10-19 18:07:13 +02:00
Jan Hendrik Metzen 9929b37270 FIX Excluding WhiteKernel from one unit-test 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 15309a4227 TST Adapting GP tests to changed hyperparameter representation 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 e3413b70f7 FIX Kernel property theta can deal with anisotropic RBF kernel 2015-10-19 18:07:10 +02:00
Jan Hendrik Metzen 4571a7f648 TST Adapted tests to changes in kernels and added additional test for theta property 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
Jan Hendrik Metzen 0210de4225 TST test_kernels tests Exponentiation kernel 2015-10-19 18:04:56 +02:00
Jan Hendrik Metzen 752b6b86a9 TST Replace call to deepcopy() by clone() 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 73b32e3a73 TST Tests for cloning kernels with sklearn.base's clone function 2015-10-19 18:04:55 +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 3ad82d8947 TST Testing kernel stationarity 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 4d3eb9611a TST Cover more kernels in tests 2015-10-19 18:04:55 +02:00
Jan Hendrik Metzen 5eaa8cf594 ENH Adding PairwiseKernel for GPs (wraps kernels from metrics.pairwise) 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen 03e35758f8 REFACTOR Merging kernel methods auto() and cross() in __call__() 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen 2ab097f0d3 TST Dealing with failing tests from test_common 2015-10-19 18:04:54 +02:00
Jan Hendrik Metzen 515defe7a4 REFACTOR auto_correlation() -> auto(), cross_correlation() -> cross() 2015-10-19 18:04:54 +02:00