Commit Graph

51 Commits

Author SHA1 Message Date
Adrin Jalali 59d5236724
MNT SLEP6: raise NotImplementedError for meta-estimators not supporting metadata routing (#27389) 2023-09-25 13:50:18 +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
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +02: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
Gleb Levitski b32e5c7ab3
ENH Accept 'auto' option for 'dual' parameter in LinearSVC and LinearSVR (#26093) 2023-05-30 16:54:24 +02:00
Guillaume Lemaitre 01b9050b69
MAINT introduce _get_response_values and _check_response_methods (#23073)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2023-03-24 18:15:08 +01:00
Thomas J. Fan dd18df5f6a
DOC Correctly docstring in StackingRegressor.fit_transform (#25599) 2023-02-19 17:41:31 +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
Rahil Parikh 2e63d2e41a
ENH Raise NotFittedError in get_feature_names_out for Stacking and Voting - Classifier and Regressor (#25324)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-17 09:40:12 +01:00
Guillaume Lemaitre 07958e66a1
DOC fix missing return line in docstring (#25099) 2022-12-02 16:58:22 +01:00
Guillem García Subies b1807ff8ea
ENH StackingClassifier allows regressors in its first layer (#24538)
Co-authored-by: Tom Dupré la Tour <tom.duprelatour.10@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-11-03 10:50:04 +01:00
Thomas J. Fan 477276d2e7
CLN Do not override signature for _visual_block_ (#24588) 2022-10-07 10:48:34 +02:00
Vincent M c18460f784
EHN Add multilabel classification support for `StackingClassifier` (#24146)
* Add stacking multilabel functionality

* Add underscore to a class attr

* Remove model from base estimator in test_stacking

* Remove scale in train/test split in test_stacking_classifier_multilabel

* Add stack_method as a test parameter, change RandomForestClassifier to KNeighborsClassifier in test

* Update Changelog

* fix doc typos

* predict_proba output will be concatenate this list in an array of shape n_samples, n_outputs * n_classes - 1. Update test.

* Update sklearn/ensemble/_stacking.py

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

* Update doc/whats_new/v1.0.rst

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>

* update whats_new

* add passthrough test

* update whats_new with current PR

* Apply suggestions from code review

Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>

* update tests

* Apply suggestion to update comments on `concatenate`

Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>

* parametrized the two tests into one

* parametrized the two tests into one

* strip the mysterious trailing  _r

* fix multilabel list scenario

* add Guillaume's recommendations

* add test for

* some fix

* split tests

* fix flake8

* add suggestions

* Trigger CI

* remove multiclass-multioutput from comments and docstrings

Co-authored-by: Nicolas <nicolas.peretti@fligoo.com>
Co-authored-by: Nestor Navarro <nestornav@gmail.com>
Co-authored-by: Nestor Navarro <nestor.navarro@mercadolibre.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
2022-09-16 13:35:55 +02:00
Thomas J. Fan 02ebf9e68f
MNT Adds dict typing hint to _parameter_constraints for mypy (#24301) 2022-08-30 11:01:10 +02:00
Rachit Keerti Das 8284281e2f
MAINT Use validate_params StackingClassifier and StackingRegressor (#23984)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-07-27 18:29:04 +02:00
genvalen 65ae1a8586
MAINT Use check_scalar in _BaseStacking (#22405)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-04-17 08:30:21 -04:00
Jack Liu a794c58692
MNT Replace if_delegate_has_method with available_if in ensemble and semi_supervised (#20545)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-14 12:25:35 +01:00
Thomas J. Fan c2d0dcbce1
ENH Adds feature_names_out to stacking estimators (#22695) 2022-03-08 18:59:18 +01:00
Meekail Zain 691972a7cf
ENH Allow prefit in stacking (#22215)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Siqi He <siqi.he@upstart.com>
2022-02-22 14:13:18 -05:00
Alex 72bd9f335f
DOC Fix duplicate-word typos (#22454) 2022-02-11 22:47:10 -05:00
baam d43bd8a04b
DOC Ensures that StackingRegressor passes numpydoc validation (#21444) 2021-10-25 10:45:11 +02:00
EricEllwanger 9ed1c65558
DOC Ensure StackingClassifier pass numpydoc validation (#21135)
Co-authored-by: frellwan <frellwan@hotmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-09-27 11:38:03 +02:00
genvalen 642127806a
DOC use backticks for n_samples and n_features in X docstring (#20914) 2021-09-02 13:35:03 +02:00
Olivier Grisel d61662b625
ENH feature_names_in_ for sklearn.ensemble (#20818) 2021-08-25 23:40:54 +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
Guillaume Lemaitre 95afec8742
TST create instances from exotic estimators for docstring params check (#20243)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-11 18:38:22 +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 b8903dacee
ENH Adds final_estimator in html repr for Stacking* (#19564) 2021-04-09 11:32:41 +02:00
Alihan Zihna 734ae1f2df
DOC add explicit message regarding shuffling in default CV (#19776)
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
2021-04-09 10:37:15 +02:00
Albert Villanova del Moral 547ed6b182
DOC Improve links in cross_validation's user guide (#18379) 2020-09-24 11:19:09 -04:00
Thomas J. Fan 06d6f8a9f6
FIX Passes global configuration when spawning joblib jobs (#17634)
* WIP

* BUG Passes context to joblib jobs

* BUG Fix

* BUG Fix

* CLN Moves delayed into fixes

* CLN Adds linter

* REV Revert diff

* DOC Adds comment for removal

* Use a simple implementation
2020-09-21 16:59:42 +02:00
Thomas J. Fan d1f0d1917d
BUG Fixes stacker compatibility with estimators without n_features_in_ (#17357) 2020-07-09 11:31:04 +02:00
Poorna Kumar 324d3b59ec
DOC Enable links to objects in docstrings (Sprint Issue #17417) (#17488)
* add StackingClassifier docstring links to objects

* add StackingRegressor docstring links to objects

* add AdaboostRegressor docstring links to objects

* add AdaboostClassifier docstring links to objects; also add docstring links to file-level docstring

* fix flake8 violations

* reviewer comments
2020-06-06 16:51:07 -04:00
Thomas J Fan ee2508ce45
ENH Adds HTML visualizations for estimators (#14180) 2020-04-30 08:31:58 +10:00
Adrin Jalali 97a6b08544
API make __init__ args in ensemble kwonly (#16724) 2020-04-01 06:35:37 +11:00
wderose f1acf83468
FIX Pass sample_weight when predicting on stacked folds (#16539) 2020-03-06 16:51:32 -05:00
wderose 68a639e3fd
MNT rename _parallel_fit_estimator to _fit_single_estimator to reflect lack of parallelism in the method (#16599) 2020-02-29 14:20:40 -05:00
Nicolas Hug d205638475
MNT Introduction of n_features_in_ attr with _validate_data mtd (#16112) 2020-02-29 09:05:11 -05:00
CastaChick ca78d75e75
DOC Fixed documents that refer to Bunch object #16438 (#16447)
* Added links to utils.Bunch and fixed format of the docstring in datasets

* Added links to utils.Bunch in sklearn.compose

* Added links to utils.Bunch in sklearn.tree

* Added links to utils.Bunch in sklearn.ensemble

* Added links to utils.Bunch in sklearn.inspection

* Added links to utils.Bunch in sklearn.pipeline

* modified docstring of Bunch

* Added links to utils.Bunch to index.rst of sklearn.datasets

* Fixed some docstrings because the lines are too long

* Fixed some points as reviewed.

* Add links and delete 'for more information...'

* Fixed indent

* Fixed forgotten points.

* Fixed some points as reviewed.
2020-02-27 10:04:04 +01:00
lopusz f2146dd744
DOC Cleaning parameter spec in docstrings for ensemble m… (#16330) 2020-02-02 20:14:45 +01:00
judithabk6 05476a1d38
TST Add test for documentation of the classes_ attribute (#16277)
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
2020-01-31 14:12:43 +01:00
@nkish 07ceb6e255 DOC follow doc guideline in ensemble an feature_extraction modules (#15975) 2020-01-03 15:32:54 +01:00
Brian Wignall 0e10b3a3cb DOC Fix typos, via a Levenshtein-style corrector (#15923) 2019-12-19 16:26:02 -08:00
Guillaume Lemaitre 157813214c TST factorize some common test of ensemble of heterogeneous es… (#15387) 2019-11-06 14:20:53 -05:00
Jon Cusick 132ad99368 ENH Pass original dataset to Stacking final estimator (#15138) 2019-10-30 15:45:48 +11:00
Adrin Jalali 437ca0553c MNT Makes modules in tree and ensemble private (#14964) 2019-10-16 10:39:00 -04:00
Guillaume Lemaitre 7dd03e0870 MAINT add base class for voting and stacking (#15084) 2019-10-04 20:49:28 -04:00
Chiara Marmo 871b251623 DOC Sphinx Unexpected unindent warnings (#15130) 2019-10-04 10:56:32 -04:00
Guillaume Lemaitre 6ea1873856 [MRG] DOC solve rendering set_params in Voting and Stacking (#15074) 2019-09-24 15:55:13 +02:00