Commit Graph

591 Commits

Author SHA1 Message Date
Jérémie du Boisberranger 9205fb4b11
TST Fix test failing scipy nightly (#22935) 2022-03-24 09:23:56 -04:00
Maxwell e5736afb31
API Deprecate max_feature=`auto` for tree classes (#22476)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-03-23 17:59:23 +01:00
ShanDeng123 f5d3a8bf38
TST Removes pytest.warns(None) in test_iforest (#22874)
Co-authored-by: Shan-Deng <45984816+Shan-Deng@users.noreply.github.com>
2022-03-18 16:36:43 +01:00
Thomas J. Fan c176beadf8
MAINT Import from public SciPy in pubilc namespace (#22875)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-17 11:59:23 +01:00
Thomas J. Fan 692225dd2c
ENH Add feature_names_out to voting estimators (#22697) 2022-03-08 20:49:59 +01:00
Maxwell 26f5b26273
ENH Add get_feature_names_out for RandomTreesEmbedding module (#21762)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-08 19:29:22 +01:00
Thomas J. Fan c2d0dcbce1
ENH Adds feature_names_out to stacking estimators (#22695) 2022-03-08 18:59:18 +01:00
Jérémie du Boisberranger d135a0f8db
MNT additional cleaning in test for 1.1 (#22661) 2022-03-03 10:31:02 +01:00
Jérémie du Boisberranger 34f9dbf541
MNT Clean fixes and compat for old versions of our dependencies (#22642)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-03-02 11:32:06 +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
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Thomas J. Fan 4ff0767087
ENH Better error message for check_scalar (#22218)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-11 16:15:30 +01:00
genvalen b80138fccb
MAINT Use check_scalar in BaseGradientBoosting (#21632)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2022-02-07 15:32:22 -05:00
Thomas J. Fan 9f85c9d449
TST Better info when checking for no warnings in tests (#22362) 2022-02-03 11:42:48 +01:00
Hideaki Imamura a0c0ca22e3
TST Accelerating ensemble/tests/test_gradient_boosting.py::test_regression_dataset (#21984)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-02-01 11:25:15 +01:00
genvalen fcbd4e0b75
MAINT Use check_scalar in _BaseVoting (#22204)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-31 10:28:32 +01:00
Guillaume Lemaitre 31aa26b73e
MNT remove mae criterion is GBDT (#21588) 2022-01-28 15:00:44 -05:00
Olivier Grisel 26e1930abf
MAINT Follow-up on a fix for criterion="poisson" in decision trees (#22306)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-01-26 19:20:09 +01:00
Christian Lorentzen 2b15b908c1
FIX poisson proxy_impurity_improvement (#22191) 2022-01-26 14:52:27 +01:00
genvalen 7879eb1193
MAINT Use check_scalar in BaseDecisionTree (#21990)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2022-01-24 20:25:36 +01:00
Julien Jerphanion 6a371ae51d
TST Assert error messages for AdaBoost estimators (#22144) 2022-01-07 11:35:14 -05:00
Guillaume Lemaitre 5bb18166d4
FIX Corrects negative gradient of AdaBoost loss in GBDT (#22050)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-12-23 10:36:18 -05:00
Mandy Gu 379919dc59
ENH Add optional parameter to return raw data for diabetes dataset (#16605)
Co-authored-by: happilyeverafter95 <mgu@wealthsimple.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-12-17 11:33:18 +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
genvalen f21f1d7539
MNT Use check_scalar in AdaBoostRegressor (#21605)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-12-16 17:13:39 -05:00
glennfrutiz b05a56878b
EXA speed up ensemble/tests/test_gradient_boosting (#21903) 2021-12-07 15:32:44 +01:00
Christian Ritter 5f3d1e57a9
[MRG] accelerate stacking-classifier in test_common.py::test_ensemble_heterogeneous_estimators_behavior (#21562) 2021-12-06 20:31:26 +01:00
MrinalTyagi b91ecdcbc5
TST Trying to fix test_parallel_classification (#21896) 2021-12-06 14:12:49 -05:00
glennfrutiz 903e867ec4
[MRG] Speed up test: warm_start_with_oob_score_fails (#21892)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-12-06 18:25:27 +01:00
Brian Sun 4d68797e27
ENH Updating defaults for RandomForestRegressor and Classifier (#20803)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-30 00:29:46 +01:00
Haoyin Xu f96ce586ee
FIX raise error for max_samples if no bootstrap & optimize forest tests (#21295)
* FIX raise error for max_samples if no bootstrap

* EHN move check position by suggestion

* FIX add bootstrap parameter to tests

* FIX resolve test error & DOC add log

* FIX add test coverage for bootstrap check

* DOC optimize error message

* FIX resolve test error

* ENH restrict sample bootstrap

* ENH optimize bootstrap conditions
2021-11-25 13:23:27 +01:00
genvalen 7b6617b42d
MNT Use check_scalar in AdaBoostClassifier (#21442)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-11-02 10:45:22 +01:00
Christian Ritter 3de86d6aba
[MRG] accelerate test_bagging.py::test_classification with hyperparam adjustment and cartesian product suppression (#21476)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 17:31:14 +02:00
Mohamed Haseeb ec1248ae8a
Speeding up test_voting/test_gridsearch (#21422) 2021-10-24 21:47:17 +02:00
Olivier Grisel bd8528db3d
MAINT Shorten parametrized test names with long error messages (#21364)
* Apply suggestions from code review

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-19 15:38:18 -07:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
András Simon 9c84abd771
ENH add `only_non_negative` parameter to `_check_sample_weight` (#20880)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-09-08 13:45:48 +02:00
Fenil Suchak cef0282ec1
FIX Avoid underflows in AdaBoostClassifier (#10096)
Co-authored-by: Fenil Suchak <fenilsuchak@fenil.local>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-08-06 15:05:32 +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 383b53fa91
FIX Uses code literals in deprecated to prevent linking (#20410)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-06-28 15:49:19 +02:00
Thomas J. Fan 351ace7935
STY Uses black's with target_version >= 3.7 (#20294) 2021-06-17 15:50:27 -04: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 ef71c8597e
MNT Clean deprecations for 1.0 | trees (#19336) 2021-06-15 18:18:47 +02:00
Brian Sun 36915ae390
ENH Adds Poisson criterion in RandomForestRegressor (#19836)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
Co-authored-by: Alihan Zihna <alihanz@gmail.com>
Co-authored-by: Alihan Zihna <a.zihna@ckhgbdp.onmicrosoft.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
Co-authored-by: naozin555 <37050583+naozin555@users.noreply.github.com>
Co-authored-by: Venkatachalam N <venky.yuvy@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-06-05 22:45:23 -04:00
murata-yu a1a6b3a960
FIX Fix RandomForestRegressor doesn't accept max_samples=1.0 (#20159)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-06-04 09:23:05 -04:00
Christian Lorentzen 2bd3a4db52
ENH Consistent loss name for absolute error (#19733) 2021-05-10 22:10:21 +02:00
Christian Lorentzen b9d6db81ec
[MRG] ENH Consistent loss name for squared error (#19310) 2021-03-19 15:21:34 +01:00
Samuel Brice 192952affa
FIX Deep copy criterion in trees to fix concurrency bug (#19580)
Co-authored-by: Samuel Brice <samuel.brice@twosigma.com>
2021-03-01 20:04:58 -05:00
Christian Lorentzen 6852e31da8
ENH Adds n_features_in_ to ensemble module (#19326)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-22 21:18:21 +01:00
xavier dupré 6a6217f15f
ENH Add mean_pinball_loss metric for quantile regression (#19415)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-02-18 19:43:40 +01:00