Commit Graph

23 Commits

Author SHA1 Message Date
Tialo 1a19918ef6
TST Extend tests for `scipy.sparse.*array` in `sklearn/ensemble/tests/test_stacking.py` (#27214)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 20:45:10 +02:00
Adrin Jalali 42173fdb34
MNT add isort to ruff's rules (#26649) 2023-06-21 17:50:07 +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
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
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
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
berkecanrizai 8df5490046
MAINT validate parameter in LinearSVM (#23686)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-06-28 16:32:54 +02:00
Jiten Sidhpura 1f0c7e9823
MAINT validate parameters in LogisticRegression and LogisiticRegressionCV (#23565)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-06-27 09:20:05 +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
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
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
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 2199de6492
TST enable to run common test on stacking and voting estimators (#18045)
* TST enable to run common test on stacking and voting estimators

* revert config changes

* revert unecessary change in _testing

* TST remove check_estimator from local files

* PEP8
2020-10-08 12:05:06 +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
Juan Carlos Alfaro Jiménez 9cd13a1fa1
FIX Change MRO for some estimators (#17837) 2020-07-05 13:52:42 +02:00
wderose f1acf83468
FIX Pass sample_weight when predicting on stacked folds (#16539) 2020-03-06 16:51:32 -05:00
Guillaume Lemaitre 157813214c TST factorize some common test of ensemble of heterogeneous es… (#15387) 2019-11-06 14:20:53 -05:00
Thomas J Fan ee5b34d2f1 [MRG] API Changes default strategy to prior in DummyClasssifer (#15382) 2019-11-06 07:11:06 +11:00
Jon Cusick 132ad99368 ENH Pass original dataset to Stacking final estimator (#15138) 2019-10-30 15:45:48 +11:00
Nicolas Hug b92455a6b2 MAINT Deprecate all of utils.testing except all_estimators (#15367) 2019-10-28 17:28:56 +01:00
Guillaume Lemaitre bab5926024 FEA: Stacking estimator for classification and regression (#11047) 2019-09-19 06:06:33 +10:00