Commit Graph

283 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
Bartosz Michałowski fa98a72dcc MNT Replaced all occurrences of assert_true and assert_false with assert (#12588) 2018-11-28 09:16:26 +08:00
Yaroslav Halchenko 362cb3bcab TST autoreplace assert_true(...==...) with plain assert (#12547) 2018-11-11 09:05:34 +08:00
Andreas Mueller 0f94f2962b
MNT simple deprecations and removals for 0.21 (#12238)
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
2018-10-11 14:56:37 -04:00
Adrin Jalali 6cf1f6abba DOC GaussianProcess (classification and regression) examples added to docstrings (#11748) 2018-08-18 19:55:04 +03:00
Hanmin Qin 9b8fd0b0d0 DOC Correct default n_jobs & reference the glossary (#11808)
Also improves the glossary entry for n_jobs.
2018-08-18 19:57:10 +10:00
Olivier Grisel 40e6c43cb4
Joblib 0.12.2 (#11741)
* joblib 0.12.2

* Export _joblib's register_parallel_backend

* Use latest version of coverage
2018-08-03 12:34:25 +02: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
Narendran Santhanam eeee6a5085 MNT Replacing log with log1p where applicable. (#11428) 2018-07-14 21:05:03 +08:00
jakirkham bc07078b76 MNT: Use NumPy clip's instead of assigning mask (#11474) 2018-07-10 22:36:38 +02:00
Andreas Mueller eec7649236 MAINT Complete 0.20 deprecations (#9570) 2018-06-24 23:06:26 +10:00
Shangwu Yao cb1dbc25a7 MNT: reduce the number of warnings in test_common.py (#11151)
Improve handling of warning filters in sklearn.utils.testing by avoiding to reset warnings.filters.
2018-06-11 08:59:12 +02: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
Mohamed Ali Jamaoui 58f84694a8 DOC Add reference to the glossary in the warm_start parameter description of public APIs (#10699) 2018-02-26 20:21:17 +08:00
jotasi 7700b5ac73 [MRG+1] FIX: Use ConvergenceWarning whenver it applies (#10306) 2018-02-10 05:16:08 -08: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
Will 80f7efe277 DOC replace 'maximize' by 'minimize' in gpr.py (#10327) 2017-12-15 15:57:38 +01:00
Joel Nothman 98c4db3f3b DOC Correct deprecation version 2017-10-18 10:42:48 +02:00
Kumar Ashutosh 01d8a342fa [MRG] Deprecates gaussian process regression_models and correlation_models. (#9717)
Forgotten from earlier deprecation
2017-10-16 12:27:06 +11:00
Albert Thomas 45dc891c96 [MRG+2] Clean common tests (#9340)
* rm dupes

* add check_supervised_y_no_nan in classifier checks: this implies changes for Ridge classifiers

* fix docstrings/comments

* FIX check fitting 1d X array raises error and FIX check fitting 2d array with only 1 feature either works or returns informative message

* modify check_fit2d_1sample in common tests so that it checks fitting either works or returns an informative message

* rm SpectralClustering case for the moment

* uniformize error messages for 1 sample case and fix SpectralClustering with ensure_min_samples=2

* add unit test for mean_shift when n_samples * quantile < 1

* FIX travis with ensure_min_samples=2 in _PLS

* try fix for failing tSNE test

* typos

* take @agramfort's review into account

* sc to fix string in gaussian_process

* add the class that is present to preserve information of previous message in gpc.py
2017-09-26 18:13:15 +02:00
Olivier Grisel c6fefb0caa FIX fmin_cobyla: iprint is deprecated, use disp (#9793) 2017-09-19 11:42:00 +02:00
Hanmin Qin 32ac22870d [MRG+1] Fix warnings in lgtm.com (remove redundant code) (#9719) 2017-09-14 11:42:58 +02:00
Minghui Liu 6e01feff14 OPTIM make GaussianProcessRegressor faster with return_std=True 2017-09-01 13:13:12 +02:00
Loïc Estève 846313b570 [MRG+1] Deprecate sklearn.utils.testing.raises and remove it from tests (#9660) 2017-09-01 12:53:59 +02:00
Hanmin Qin e8a15d5444 DOC fix the equation in gaussian_process.kernels.ExpSineSquared (#9224) 2017-06-29 13:31:48 +02:00
Guillaume Lemaitre 076f46a152 [MRG+1] MAINT Upgrade to sphinx 1.6.2 (#9227) 2017-06-29 10:08:50 +02:00
Manoj Kumar ec0dbf0399 [MRG+1] Fixes predicting std and cov without fitting in GPR by default. (#9177)
* If self.kernel_ is None then self.kernel_ is set to RBFKernel in predict() as fit(). Fixes #6573

* xxx_ attributes can not be altered outside fit. Removing self.kernel_ from predict() and using previously implemented self.kernel attribute.

* Cleanup and add non-regression-test
2017-06-25 15:32:16 -07:00
Thomas Moreau 8dde4096bd [MRG] ENH make rng seed thread safe everywhere it is possible (#9184)
* ENH make rng seed thread safe everywhere it is possible

* ENH remove unneeded use of np.random.seed
2017-06-23 07:40:33 +02:00
Aman Dalmia fa82eee82f [MRG+1] Better error message for GPR (#8386)
* FIX: better error message for GPR

* TST: added tests for error message

* FIX: correct error message and simplified tests

* DOC: updated docstring for GPR

* FIX: pass float as value for alpha

* Raise original error after modification to preserve traceback

Amend test accordingly
2017-06-08 15:06:48 +10:00
Sergei Lebedev a47c3b9a07 ENH use expit in ``_BinaryGaussianProcessClassifierLaplace`` (#9011)
SciPy already provides a numerically stable ``special.expit``
function, which does not overflow on the example mentioned in #8641.
2017-06-07 10:20:54 +10:00
Guillaume Lemaitre e3c9ae204f [MRG+1] DOC improve description and consistency of random_state (#8689)
* DOC improve description of random_state in train_test_split

* DOC Make random_state consistent through documentation

* FIX reverse doc mistake

* FIX address comment of Tom

* DOC address comments

* DOC remove empty line

* DOC remove unecessary white spaces
2017-04-05 17:43:21 -07:00
Hadrien Bertrand d01a02bdd1 [MRG+1] GaussianProcessRegressor: faster prediction of std (#8591) 2017-03-16 18:01:07 +01: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
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
Paul Ganssle 9f6b849c35 TST Change rstrip() to truncation in test function (#8237) 2017-01-27 08:41:03 +11:00
Ekaterina Krivich be305cebaf TST/FIX Add check for estimator: parameters not modified by `fit` (#7846)
ensure that estimators only add private attributes and attributes with
  trailing _

  in cases when existing estimators don't follow this new rule, we deprecate the
  attributes and make them follow this rule
2017-01-20 11:33:17 +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
Loïc Estève e5bf61eee1 [MRG+1] Dropping python 2.6 support (#7890)
* Remove Python 2.6 support

Some details about some slightly orthogonal changes:
* Note about cheking safely for nan is likely not valid any more (commit
  introducing it is c80ca91b)
* scipy.linalg.qr econ parameter removed since scipy 0.9 in favour of
  mode='economic'
* Remove unnecessary libgfortran in conda create command

* Putative fix by setting the random seed

* Revert unintended change

* Reinstate previous logic for checking for NaNs

* Reinstate change in error message

Error messages from Python 2.7 assertRegexp does not contain the
function name, in contrast with Python 3 assertRegex
2016-11-23 17:11:04 -05:00
waterponey 6e50c8f35e [MRG+2] DOC framework for keeping API refs for deprecated classes/funcs (#7725)
* DOC framework for keeping API refs for deprecated classes/funcs

* DOC tagging deprecated for 0.20

* suggestion for LDA/QDA deprecation

* simplify deprecation message for GaussianProcess

* simplify deprecation messages

* fixup avoid import QuadraticDiscriminantAnalysis in qda.QDA (and similar for LDA).

* fixup test alias lda.LDA is instance of LinearDiscriminantAnalysis
2016-10-30 16:04:35 +01:00
Andreas Mueller 4da44c8541 [MRG+1] replaced some assert_true(np.allclose(x, y)) with assert_almost_equal (#7742)
* replaced some assert_true(np.allclose(x, y)) with assert_almost_equal for better error messages.

also some pep8.

* typo fixes
2016-10-25 09:15:58 -04:00
Konstantin Podshumok 9b2aac9e5c [MRG + 1] [TST] (half-cosmetic) use less nose.tools import to simplify future transition to py.test (#7384)
* use less nose.tools import to simplify future transition to activly developing test suites/runners

* assert_equal -> assert_array_equal in test_feature_hasher_pairs_with_string_values

and one missed ImportError that should be replaced with AttributeError

* test for py2.6 compat with except AttributeError

* fix importing of SkipTest

* force using nose in python2.6 for now

* there was no assert_dict_equal in py2.6. but we can use assert_equal

although failed test will look a little bit ugly

* remove nose imports from doc/datasets
2016-10-07 12:46:52 -04:00
Ruifeng Zheng e17d5c9337 [MRG] Fix GaussianProcess batch predict in Py3k #7329 (#7330)
* fix batch

* add test for eval_MSE
2016-10-06 14:07:40 +11:00
Josh Karnofsky 9551ec85ea DOC add spaces before colons in docstrings (#7589) 2016-10-06 14:01:12 +11: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