Commit Graph

156 Commits

Author SHA1 Message Date
Maxwell 2cc12c604a
DOC ensure IsolationForest passes numpydoc validation (#20437) 2021-07-06 10:59:25 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +02:00
Sebastian Flores 3b309f23f0
DOC Ensures that ARDRegression passes numpydoc validation (#20381)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-06-28 10:08:10 +02:00
Jesse Lima 23df3e2d55
DOC Ensures Lasso passes numpydoc validation (#20409) 2021-06-27 08:14:16 +02:00
Thomas J. Fan 82df48934e
MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
Jérémie du Boisberranger 536f3ccd75
MNT Allow to only validate y in _validate_data (#20227)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-15 17:14:19 +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
Thomas J. Fan d996eaf088
ENH Adds _num_features for array-likes (#19633)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-03-16 15:14:25 +01: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
Guillaume Lemaitre 255718b4ad
introduce _safe_tags for estimator not inheriting from BaseEstimator (#18797)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-12-02 11:18:53 +01:00
Juan Carlos Alfaro Jiménez 1864ed442e
MNT Raise error if parameter cannot be retrieved (#17448)
* MNT Raise error if parameter cannot be retrieved

* MNT Prefer pytest.raises over assert_raises_regex

* FIX Fix tests

* DOC Add what's new entry
2020-10-28 19:05:15 +01:00
Nicolas Hug dccaf4c867
DOC Good practices and pitfalls for random_state (#18363) 2020-10-27 11:36:55 -04:00
Thomas J. Fan e8ffa3179a
CLN Only check for n_features_in_ only when it exists (#18011)
* CLN Checks n_features_in only if it exists

* Update sklearn/base.py

Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>

* DOC Update docstring

* DOC Grammer

* Grammar [ci skip]

Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2020-10-13 11:07:26 +02:00
Thomas J. Fan 02fa8f1adb
ENH Deprecates _pairwise attribute and adds pairwise to estimator tags (#18143) 2020-10-07 21:53:36 +11:00
Thomas J. Fan 8731cd732b
ENH Uses _validate_data in other methods in the neural_network module (#18514) 2020-10-07 11:35:47 +02:00
Guillaume Lemaitre 21569e719c
TST Common test preserve dtype (#18054)
Co-authored-by: Sebastian Kießling <sebkies@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-09-08 10:13:53 +02:00
Juan Carlos Alfaro Jiménez 2fa4272b1d
DOC Fix documentation of the base module (#17548)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 21:48:05 +02:00
Thomas J. Fan 7647ed3e77
MNT Only reset on the first call to partial_fit in birch (#18014) 2020-08-21 08:51:19 -04:00
Juan Carlos Alfaro Jiménez 6c3e17989a
DOC Specify the meaning of y=None in fit_transform (#17366) 2020-05-27 14:35:00 -07:00
Thomas J Fan 7117a63137
MNT Removes voting classifer mention (#17196) 2020-05-13 14:49:47 -04:00
brigi 865069c234
DOC Fix documentation of default values in base, birch (#16195)
* Fix documentation of default values in birch

* fix input and output description as suggested

* fix typo

Co-authored-by: Brigitte@home <unger@nue.tu-berlin.de>
2020-05-10 12:14:18 -04:00
Thomas J Fan f23b940dca
FIX Adjusts html_repr based on configuration (#17093)
* ENH Adjusts html_repr based on configuration

* CLN Returns None instead

* CLN Uses property hack

* CLN Address comments
2020-05-05 09:58:10 +02:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Nicolas Hug fbae1edfd8
API kwonly args in base (#17006) 2020-04-23 10:20:52 +02:00
Nicolas Hug 089c8a17a1
[MRG] MNT requires_y tag with y=None validation (#16622) 2020-04-22 22:41:45 +10:00
Nicolas Hug 2d03d781a9
MNT simplify xfail check marking logic (#16949)
Co-Authored-By: Roman Yurchak <rth.yurchak@gmail.com>
2020-04-17 13:44:09 -04:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
Roman Yurchak 1c1f273d10
ENH XFAIL in common tests with estimator tags (#16502) 2020-02-20 22:28:54 +01:00
lopusz e1c7649469
DOC Cleaning parameter spec in docstrings of base module (#16284) 2020-01-31 06:43:22 -05:00
olicairns 3ae671e07b ENH Improve error message in clone when passed class instances (#16189) 2020-01-27 09:21:09 +01:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
m.fab 98cb91b545 DOC numpydoc validation for VotingClassifier (#15497) 2019-11-17 19:29:38 +01:00
Yu-Hang "Maxin" Tang 8360786895 ENH Allowing Gaussian process kernels on structured data (#15557) 2019-11-15 16:07:36 -08:00
Richard Payne 6488110706 DOC Docstring fix for DecisionTreeClassifier and DecisionTreeR… (#15483) 2019-11-05 23:36:57 +01:00
Tola A b862c2555b DOC Numpydoc validations to `MinMaxScaler` (#15448) 2019-11-04 12:03:39 +01:00
Paolo e5429cb7f1 DOC Fix docstrings to Numpy format for IsolationForest (#15454) 2019-11-02 18:53:21 +01:00
Tola A 9c2c263f9b DOC numpydoc validations for LogisticRegression (#15445) 2019-11-02 15:38:50 +01:00
Nicolas Hug e947689c90 MAINT Make files private for sklearn.metrics and sklearn.metrics.cluster (#15306) 2019-10-23 15:20:28 +02:00
Adrin Jalali 0eebade264 DOC docstring (shape= -> of shape) (#14640) 2019-10-02 20:54:32 -04:00
Andreas Mueller a6103d3faf MAINT remove inheriting from object (#14891) 2019-09-05 14:41:29 -04:00
Thomas J Fan 14f5302b70 DOC Link items explictly (#14817)
* DOC Link items explictly

* STY

* DOC Link another
2019-09-05 11:37:05 +02:00
Andreas Mueller 03ea20db0f Fix mixin inheritance order, allow overwriting tags (#14884) 2019-09-05 10:13:30 +02: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
Roman Yurchak 78ac1ab026 TST Add requires_positive_y estimator tag (#14095) 2019-06-25 01:09:38 +10:00
Trevor Stephens d84a8d17af ENH Binary only estimator checks for classification (#13875)
Also adds the binary_only estimator tag
2019-06-12 10:31:18 +02:00
Agamemnon Krasoulis 19192c0427 MAINT Replace manual checks with `check_is_fitted` (#13013) 2019-05-07 14:54:56 +10:00
Nicolas Hug 1fe00b5894 [MRG + 1] Fix pprint ellipsis (#13436) 2019-04-18 11:15:41 +02:00
Aditya Vyas 301076e77b MAINT Replace absolute imports with relative imports (#13653) 2019-04-17 12:45:14 -04:00
Hanmin Qin 8f35843d98
MNT Update deprecation message in RegressorMixin.score to tell users how to avoid the warning (#13477) 2019-03-29 15:22:03 +08:00
Hanmin Qin 85206250ce DOC Typo metric.make_scorer -> metrics.make_scorer 2019-03-15 20:42:59 +08:00