Commit Graph

126 Commits

Author SHA1 Message Date
Guillaume Lemaitre 84c3ff0fc1
TST ensure to raise deterministic warning in learning curve test (#27803) 2023-11-18 12:53:36 +01:00
Rahil Parikh 408117082f
ENH `learning_curve` raises a warning on failure of CV folds (#26299)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-11-17 11:22:59 +01:00
Brendan Lu 2800ed5968
TST Extend tests for `scipy.sparse.*array` in `model_selection/tests/test_validation.py` (#27366) 2023-09-18 11:53:40 +05:00
Adrin Jalali 6fa514afe3
ENH add metadata routing to cross_val* (#26896)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-08-09 10:15:39 +02:00
Dmitry Nesterov 10e49591e2
MAINT Parameters validation for sklearn.model_selection.cross_val_score (#26251)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-06-28 14:12:27 +00:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Dimitri Papadopoulos Orfanos 4509e5810b
CLN EnvironmentError, IOError, WindowsError → OSError (#26466) 2023-06-02 17:20:31 -04:00
Gleb Levitski b32e5c7ab3
ENH Accept 'auto' option for 'dual' parameter in LinearSVC and LinearSVR (#26093) 2023-05-30 16:54:24 +02:00
Yao Xiao 4caa4abf82
MAINT Parameters validation for sklearn.model_selection.learning_curve (#26227)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-04-26 20:29:24 +00:00
Yao Xiao 144324b328
MAINT Parameters validation for sklearn.model_selection.validation_curve (#26229)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-04-26 20:14:28 +02:00
Dmitry Nesterov cec09e2091
MAINT Parameters validation for sklearn.model_selection.cross_validate (#26129)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2023-04-19 17:33:26 +00:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Guillaume Lemaitre c66787ab55
ENH allow to return train/test split indices in cross_validate (#25659)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-03-09 11:35:41 +01:00
Shady el Gewily b2fe9746a8
FIX fix faulty test in `cross_validate` that used the wrong estimator (#25456) 2023-01-24 11:19:50 +01:00
András Simon d17d0f9f72
FIX `cross_validate` with multimetric scoring returns the non-failed scorers results even if some fail (#23101)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-12-28 15:16:11 +00:00
Vicente Reyes-Puerta 4fa77dd5b4
MAINT Update to mypy 0.961 to ensure compatibility with python 3.10 (#23729) 2022-06-23 15:20:27 +02:00
Meekail Zain 0d923daf6d
EHN Change default value of n_init in KMeans (#23038)
Co-authored-by: Muriel <muriel.grobler@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-05-25 10:15:46 +02:00
Christian Lorentzen 0c20ba7449
DEP loss "log" in favor of "log loss" in SGDClassifier (#23046)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-04-07 15:08:45 +02:00
Thomas J. Fan d7c84b239c
FIX Fixes partial_fit support for regressors in learning_curve (#22982)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2022-04-06 14:47:56 +02:00
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
Guillaume Lemaitre 229bd226ab
MNT remove _pairwise attribute (#21594) 2022-02-09 16:58:01 +01:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
Benjamin Bossan a3e0d4d79f
ENH make CalibratedClassifierCV accept on fit_params (#18170)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: BenjaminBossan <b.bossan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-12-17 10:35:50 +01:00
Loïc Estève 93bc20f7eb
Raise an error when all fits fail in cross-validation or grid-search (#21026) 2021-10-05 16:42:51 +02:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
Loïc Estève 7317416193
Warn in the main process when a fit fails during a cross-validation (#20619)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-08-10 16:31:26 +02:00
Thomas J. Fan 3ae7c76153
STY Enables black with experimental_string_processing=true (#20412) 2021-06-29 09:47:04 +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
Mohamed Haseeb 5c0bbb0a4a
TST replaces assert_raise* by pytest.raises in model_selection (#19592)
Co-authored-by: Cycks <sikolia.wycliffe@gmail.com>
2021-03-02 12:14:26 +01:00
Atsushi Nukariya b5e55f79fd
TST replace assert_warns* by pytest.warns in model_selection/tests (#19458) 2021-02-19 11:44:09 +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
Amanda Dsouza 1e386a49fc
ENH Add support for 'fit_params' to learning_curve (#18595)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-14 12:25:58 -04:00
Amanda Dsouza 8091fafd70
[MRG] Fit params support for permutation_test_score and validation_curve (#18527) 2020-10-14 14:17:56 +02:00
Guillaume Lemaitre 7dcb1ac560
FIX allow to output error_score if a scoring failure happen (#18343)
Co-authored-by: Devi Sandeep Endluri <dsandeep97@tamu.edu>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2020-10-09 15:12:57 +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 ad9cef3696
TST Uses regex for flaky test (#18209) 2020-08-21 08:03:08 +10:00
Thomas J. Fan 9acfaab966
ENH Adds support for multimetric callable return a dictionary (#15126) 2020-07-16 17:55:40 +02:00
Juan Carlos Alfaro Jiménez 0e33229351
FIX Extract estimator objects before aggregating dict of scores (#17745)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-26 21:15:41 -04:00
Thomas J. Fan 67bf1e78f5
ENH _fit_and_score now returns a dictionary (#17332)
* ENH _fit_and_score now returns a dictionary

* MRG

* REV

* LOL

* Removing things in gitignore is fun
2020-06-26 12:38:12 +02:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Chiara Marmo fc0d2c3210
[MRG] ENH Show split/candidate ids in verbose output of SearchCV (#16935) 2020-06-19 11:26:58 +02:00
Lucy Liu c7a4bc9b3a
TST Replace Boston dataset in test_validation (#17146) 2020-05-08 17:53:15 -04:00
Adrin Jalali 02309ffbda
API kwonly args in manifold, metrics, mixture, model_selection, multclass, multioutput (#16982) 2020-04-24 17:24:24 -04:00
lkubin 88963f86fb ENH Make cross_val_predict support method="predict_proba" and y=None (#15918) 2019-12-24 09:34:49 +11:00
Gregory Morse a05a5bc2b3 ENH Yield stack trace information in resilient mode model_selection warnings (#15622) 2019-12-14 15:32:59 -05:00
Nicolas Hug 4256542b10 MNT Removed deprecated attributes and parameters (#15803) 2019-12-09 22:17:06 +08:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Nicolas Hug bcd399f4cb FIX Fixed some imports after deprecations (#15345) 2019-10-23 16:59:52 +02:00
Thomas J Fan dba753a200 API Auto generates deprecation for sklearn.utils.mocking (#15071) 2019-10-03 00:09:28 +10:00