Commit Graph

53 Commits

Author SHA1 Message Date
Guillaume Lemaitre 229bd226ab
MNT remove _pairwise attribute (#21594) 2022-02-09 16:58:01 +01:00
mandjevant 231ca9e804
DOC Various documentation improvements (#21764)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-26 11:11:43 +01:00
Ishan Kumar a246a2e26d
DOC updated variable name in KRR docstring (#21281) 2021-10-12 10:21:39 -07:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
genvalen d81eee0044
DOC Ensures that KernelRidge passes numpydoc validation (#20702)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-09 11:46:04 +02:00
Thomas J. Fan 383b53fa91
FIX Uses code literals in deprecated to prevent linking (#20410)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-28 15:49:19 +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
Thomas J. Fan 9a13bdfaf1
MNT Adds black config and fixes formatting before black (#19031)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-06-12 17:14:09 +02: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
Guillaume Lemaitre 2218ec4622
MNT change 0.25 to 1.0 and 0.26 to 1.1 in deprecation messages (#19005)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-12-18 16:09:19 +00:00
Thomas J. Fan 10a5a19d53
ENH Adds n_features_in_ checking in kernel_* (#18740)
* ENH Adds n_features_in_ checking in kernel_approximiation

* ENH Checks n_features_in in kernel_ridge
2020-11-20 13:45:39 -08:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Albert Villanova del Moral 647fcb1ac1
DOC Fix A to uppercase in See Also docstring section (#18332) 2020-09-04 10:35:01 -04:00
Yue Wu 9becce0669
[MRG] update the documents (default value) in the function sklearn.kernel_ridge.KernelRidge (#17904)
* update the documents (default value) in the function kernel_ridges.py

* update the array size notation

* update sample_weight array size
2020-07-11 23:34:32 +02:00
Yue Wu 993a0a3ab7
ENH remove default y value in sklearn.kernel_ridge.KernelRidge.fit (#17906) 2020-07-11 17:27:16 -04:00
Saurabh Jain 00bc681e10
DOC shorten class links in docstring using tilde (#17470)
* added tilde to bunch of files

* Updated _kde.py

Changed array_like to array-like

* Updated _kde.py

Removed space

* updated _kde.py

Added full stop

* PEP8

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-16 10:44:13 +02:00
Adrin Jalali dc0cc6e9be
[MRG] API kwonly args in impute, inspection, kernel_ridge (#16926)
, and linear_model
2020-04-19 22:58:47 +02:00
Alex Henrie 438bb3a438
MNT Remove unused imports (#16665) 2020-03-11 10:01:51 +11:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Nicolas Hug 00841fab69
DOC Minor doc update to KernelRidge (#16295) 2020-01-29 23:44:20 +01:00
Thomas Li 00fe3d6944 Validate sample weight with check_sample weight in kernel_ridge (#16154) 2020-01-20 11:47:54 +01:00
Thomas J Fan 0a7adef005 MNT Make modules private in linear_model (#15324) 2019-10-23 15:34:26 +02:00
Adrin Jalali 0eebade264 DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
Andreas Mueller 03ea20db0f Fix mixin inheritance order, allow overwriting tags (#14884) 2019-09-05 10:13:30 +02:00
Andreas Mueller 92af3dabbb MAINT simplify check_is_fitted to use any fitted attributes (#14545) 2019-08-13 22:09:07 +02:00
Thomas J Fan 2e7e06b78f [MRG] Doctest with print change only adjusts default options for doctest (#13991) 2019-06-01 10:53:45 +02:00
Stephen Cowley e7ca6236c5 Fix spacing and formatting inconsistencies (#13747) 2019-05-02 01:29:49 +10:00
Andreas Mueller ab2f539a32 API: Estimator tags (#8022) 2019-02-23 22:54:41 +01:00
Wes Barnett 20cb37e8f6 DOC document "precomputed" kernel for KernelRidge (#11134)
* document "precomputed" kernel for KernelRidge

See #8445.

* fix doc for KernelRidge

use n_samples_fitted in score
2018-05-26 19:14:02 +10:00
Hanmin Qin 42ee9b72cf [MRG] DOC Fix missing link in kernel_ridge.py (#9966)
* DOC Fix missing link in kernel_ridge.py

* remove func
2017-10-22 15:57:23 +11:00
Kathy Chen 04b67e2bcd [MRG+1] Fix estimators to work if sample_weight parameter is pandas Series type (#7825)
* addressed comments in the PR about parameters in check_array

* update the test case for the evaluation of estimators with pandas series

* bug fix, need to check for *not* None explicitly

* updated with isinstance check if the documentation says there is acceptance of floats

* ran pep8 linter on modified files

* moving the test case to estimators_check

* add a predict function into the testing pandas.Series class

* avoid running anything beyond the newly added meta checks

* check if pandas is installed before running the specific test

* changed the order of the try-catch to check for sample_weight param beforehand

* pass on import error rather than printing something to std out

* improve test case naming and pd.Series check in the bad estimator class

* address a pep8 linter error with unused import

* pep8 warning disabled for potential unused import

* throw a warning when SkipTest is raised

* add a SkipTestWarning

* updated the whats_new.rst with this issue

* rebase and fix a spacing issue
2016-12-03 15:56:22 -05:00
Robin Schucker 1f381ae728 Fixed doc for issue #7409 (#7410) 2016-09-13 20:27:17 +10:00
YenChenLin 46fc1be145 Remove redundant words in sklearn 2016-02-23 16:54:03 +08:00
Clyde-fare a60152655b Added laplacian kernel
A variant of the rbf kernel that uses the L1 norm.
Updated docs and kernel references.
2015-10-14 13:56:57 -04:00
Andreas Mueller 6bae1b99be force y to be numeric in kernel ridge. 2015-07-31 17:27:45 -04:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Mathieu Blondel 7fa9b0edc0 Support sparse matrices in KernelRidge.
Fixes #4384.
2015-03-12 23:08:10 +09:00
Mathieu Blondel ab88c4c06e Use relative imports. 2015-01-25 00:16:45 +09:00
Mathieu Blondel bdacaba7c2 Kernelized ridge regression -> Kernel ridge regression 2015-01-21 11:50:54 +09:00
Mathieu Blondel 73f0d2bef4 Remove unused imports. 2015-01-18 14:52:43 +09:00
Jan Hendrik Metzen 2a2e7c6ecd FIX KernelRidge checks if fitted before predict 2015-01-18 11:01:44 +09:00
Jan Hendrik Metzen c48c9711b3 MISC Let sample_weight default to None 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen 60e3d0464d DOC Revised documentation of kernel ridge regression 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen d24087737e MISC Using RandomState object instead of setting global seed 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen eaaf84d730 REFACTOR Backported changes in _solve_cholesky_kernel to ridge.py 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen e5888b2fbd FIX Allow multi-output in KernelRidge 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen ddaf1908cd FIX Input validation in fit() of KernelRidge 2015-01-18 11:01:43 +09:00
Jan Hendrik Metzen 12e2ee34f0 MISC Optimized two numpy statements in kernel_ridge.py 2015-01-18 11:01:42 +09:00