Commit Graph

519 Commits

Author SHA1 Message Date
Franck Charras 77aeb825b6
FIX Apply dtype param in `check_array_api_compute_metric` unit test (#27940) 2023-12-18 16:43:08 +01:00
Franck Charras 3cd80629cf
MNT Prune unused argument in `_array_api_for_tests` util (#27941) 2023-12-11 16:43:48 -05:00
scaja f113327bf1
DOC linked SplineTransformer to time-related feature engineering example (#26971)
Co-authored-by: scaja <scajadata@gmail.com>
Co-authored-by: adrinjalali <adrin.jalali@gmail.com>
2023-12-04 15:44:21 +00:00
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
Yao Xiao 365ce39940
DOC minor fixes of cross-validation splitter docstrings (#27790) 2023-11-16 11:22:16 +01:00
Tialo dcebbc4c5c
MAINT Fix typos in names of variables (#27664) 2023-10-26 15:15:39 +02: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
MN193 a337410f78
DOC add link to plot_cv_indices example in _split (#27244)
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
2023-09-17 13:09:29 +02:00
Arturo Amor 4b352163d5
FIX potential AttributeError when passing list to ValidationCurveDisplay (#27311)
Co-authored-by: ArturoAmorQ <arturo.amor-quiroz@polytechnique.edu>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 12:09:51 +02:00
Yao Xiao db9fe1519a
TST Extend tests for `scipy.sparse/*array` in `sklearn/model_selection/tests/test_split` (#27246) 2023-09-13 13:56:07 +05:00
Rahil Parikh 0b6f442efe
TST Extend tests for `scipy.sparse.*array` in `sklearn/model_selection/tests/test_search.py` (#27286)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-11 19:34:45 +02:00
Adrin Jalali 83a8015702
FEAT add metadata routing to *SearchCV (#27058) 2023-09-11 16:19:24 +02:00
Mateusz Sokół cb15a82e64
MAINT: Remove np.in1d and np.trapz usages (#27140)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
2023-09-06 17:06:31 +02:00
Loïc Estève 64cb5a3fb3
MNT Avoid np.lib.arraysetops which is private in numpy 2 (#27297) 2023-09-05 12:26:08 +02:00
Tim Head 1b0a51bd90
Add tests for train_test_split with Array API input (#26855)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-08-09 18:27:31 +00:00
Adrin Jalali 8e867b3fdb
MNT fix ruff type vs isinstance errors (#27039) 2023-08-09 09:44:31 +00: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
Stefanie Senger 3725ac1495
FIX `param_distribution` param of `HalvingRandomSearchCV` accepts list of dicts (#26893)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-08-07 14:09:50 +02:00
Omar Salman 02d20c1851
ENH Add routing to LogisticRegressionCV (#26525)
Co-authored-by: Omar Salman <omar.salman@arbisoft>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-07-14 19:00:35 +02:00
Adrin Jalali ba6896ec36
FIX clone to handle dict and GridSearchCV changing original params (#26786)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-13 16:16:29 -05:00
Julien Jerphanion dfd299b19e
MAINT Remove soon-to-be deprecated scipy.sparse functions (#26751) 2023-07-12 18:34:01 +02:00
Guillaume Lemaitre 5d145bf760
DOC fixes intersphinx warnings (#26779)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-07-10 20:25:35 +00:00
Dmitry Nesterov 7f871fe931
MAINT Parameters validation for sklearn.model_selection.cross_val_predict (#26252)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
2023-06-28 15:23:35 +00: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
Jérémie du Boisberranger 04575f5fa3
MAINT Param validation: apply skip nested validation to all functions (#26495) 2023-06-22 18:06:24 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02:00
Thomas J. Fan 547058f1ce
CI Fixes tests when matplotlib is not installed (#26588) 2023-06-15 09:17:40 +00:00
Guillaume Lemaitre 8cac52f9d1
FEA add ValidationCurveDisplay in model_selection module (#25120)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2023-06-14 17:08:43 +00:00
Jérémie du Boisberranger 9c266cf5d6
MAINT Param validation: decorate all estimators with _fit_context (#26473) 2023-06-14 16:52:35 +02:00
Dimitri Papadopoulos Orfanos 4509e5810b
CLN EnvironmentError, IOError, WindowsError → OSError (#26466) 2023-06-02 17:20:31 -04:00
Adrin Jalali 62671a704f
FEAT SLEP006: metadata routing infrastructure (#24027)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
2023-06-02 16:43:31 -04:00
Julien Jerphanion 41b0bd82ff
MAINT Use `scipy.sparse.isspmatrix_*` (#26420) 2023-05-30 13:46:32 -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
Yao Xiao e20b3a66aa
MAINT Parameters validation for sklearn.model_selection.permutation_test_score (#26230) 2023-04-25 14:29:55 +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
Christian Veenhuis 559609fe98
MAINT Fix several typos in src and doc files (#26187) 2023-04-17 21:35:24 -04:00
Adrin Jalali 893d5accaf
MNT Update black to 23.3.0 (#26110) 2023-04-06 12:14:16 -04:00
Jérémie du Boisberranger 9d55835574
MAINT Ensure disjoint interval constraints (#25797) 2023-03-15 14:44:09 -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
Ralf Gommers d926ff130f
MAINT remove np.product and inf/nan aliases in favor of canonical names (#25741) 2023-03-02 10:52:07 +01:00
Christian Veenhuis 610a0ce970
DOC unify usage of 'w.r.t.' (#25683) 2023-02-24 09:51:02 +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
Guillaume Lemaitre a7cd0ca44d
FIX propagate configuration to workers in parallel (#25363)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2023-01-20 12:44:35 -05:00
Kento Nozawa d61efb6363
DOC fix typo in docstring of RandomizedSearchCV (#25396) 2023-01-14 15:39:58 +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
Guillaume Lemaitre 209c132786
MAINT add parameter validation for SearchCV (#25151)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-12-27 16:43:07 +01:00
Guillaume Lemaitre b01f018c9b
FIX ignore *args and **kwargs in parameter validation of public functions (#25114)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
closes https://github.com/scikit-learn/scikit-learn/issues/25113
2022-12-05 17:13:05 +01:00