Commit Graph

210 Commits

Author SHA1 Message Date
Olivier Grisel 1fbf5fb317
TST Speed up some of the slowest tests (#27383) 2023-09-16 11:09:15 +02:00
Yao Xiao a504e680da
TST Extend tests for `scipy.sparse/*array` in `sklearn/ensemble/tests/test_gradient_boosting` (#27217)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-09-13 19:38:42 +00:00
Guillaume Lemaitre bbc73cfd7f
FIX _safe_divide should handle zero-division with numpy scalar (#27312)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2023-09-10 22:13:26 +05:00
Christian Lorentzen 5dbb8f52dc
ENH replace loss module Gradient boosting (#26278) 2023-09-07 16:01:27 +05: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 4751545b55
MAINT Clean-up deprecated max_features="auto" in trees/forests/gb (#25941) 2023-03-22 11:30:19 -04:00
Jérémie du Boisberranger 7057727fe5
MAINT Clean deprecated losses in (hist) gradient boosting for 1.3 (#25834) 2023-03-13 12:57:33 -04:00
Ashwin Mathur c676917697
FEA Store the GradientBoosting OOB Scores in the `oob_score(s)_` fitted attributes (#24882)
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2023-01-12 10:12:01 +01:00
Jérémie du Boisberranger 14130f44eb
MAINT Allow partial param validation for functions (#25087) 2022-12-06 15:59:08 +01:00
Julien Jerphanion 06c36bbad6
TST Relax `test_gradient_boosting_early_stopping` (#24541) 2022-10-07 11:33:21 +02:00
Hao Chun Chang 257757755b
TST use global_random_seed in sklearn/ensemble/tests/test_gradient_boosting.py (#23549)
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-09-25 23:20:55 +02:00
Jérémie du Boisberranger 2ee49dc050
MAINT Clean deprecation for 1.2: losses in gradient boosting (#24394) 2022-09-13 11:38:24 +02:00
Jérémie du Boisberranger b4f51fd156
MAINT Clean deprecation for 1.2: n_features_ replaced by n_featues_in_ (#24388) 2022-09-08 11:15:06 -04:00
Jérémie du Boisberranger 29cdbe7bcf
MAINT Clean deprecation for 1.2: criterion="mse"/"mae" in trees (#24384) 2022-09-07 15:37:13 +02:00
Jérémie du Boisberranger 1a6f9b6414
TST Remove remaining tests now covered by common param validation test (#24383) 2022-09-07 14:50:31 +02:00
Stefanie Molin 329adf1da8
MAINT Parameter validation for descendants of BaseLibSVM (#24001)
Co-authored-by: Stefanie Molin <smolin4@bloomberg.net>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
2022-07-27 17:27:50 +02:00
Kian Eliasi 312f34d776
MAINT Parameter validation in GradientBoosting family (#23857) 2022-07-22 13:49:17 +02:00
Moritz Wilksch 549fbb8c41
MAINT use `_validate_params` in `DecisionTreeClassifier` and `DecisionTreeRegressor` (#23499)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: jeremiedbb <jeremiedbb@yahoo.fr>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-06-24 12:19:36 +02:00
Christian Lorentzen 0d669dc419
DEP loss_ attribute in gradient boosting (#23079) 2022-04-12 19:26:21 +02:00
Christian Lorentzen 2d97ef8873
DEP deviance in favor of log_loss for GradientBoostingClassifier (#23036)
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
2022-04-06 13:07:27 +02: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
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
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
Guillaume Lemaitre 31aa26b73e
MNT remove mae criterion is GBDT (#21588) 2022-01-28 15:00:44 -05: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
glennfrutiz b05a56878b
EXA speed up ensemble/tests/test_gradient_boosting (#21903) 2021-12-07 15:32:44 +01: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
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 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
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
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
Hassan Alsawadi c61dcff511
TST replace assert_raise_* by pytest.raises in ensemble module (#19399)
Co-authored-by: feras-oughali <oughali.feras@gmail.com>
Co-authored-by: hassanalsawadi <alsawadi.h@mozn.sa>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-11 14:16:55 +01:00
Atsushi Nukariya 7f5ee92bed
TST replace assert_warns* by pytest.warns in ensemble/tests (#19425)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-11 11:45:15 +01:00
Thomas J. Fan 0e546ebe5b
TST Download datasets before running pytest-xdist (#19118)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-01-13 17:02:53 +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
Madhura Jayaratne 4de0f97aa3
DEP deprecate "mae" criterion in GadientBoosting estimators (#18326) 2020-09-04 11:17:39 +02:00
simonamaggio 989613e5c3
DEP Deprecate n_classes_ in GradientBoostingRegressor (#17702)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-13 19:25:55 +02:00
Guillaume Lemaitre 94a5d93ecc
TST parametrize and clean-up tests GBDT (#17860) 2020-07-08 16:22:04 +02:00
Guillaume Lemaitre 6c0e04a7e3
TST remove useless network marker in GBDT tree (#17858) 2020-07-08 11:29:11 +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
Lucy Liu 5a33360ebb
TST replace Boston in test_gradient_boosting.py (#16937)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-06-23 11:12:01 +02:00
Nicolas Hug e91902298f
MNT remove deprecated presort param (#17446) 2020-06-04 20:43:15 +02:00
Nicolas Hug ac8cbb3799
[MRG] More deprecation for 0.24 (#17142)
* normalize_components in sparsePCA

* changed default strategy of Dummy to prior and removed outputs_2d ttribute

* removed usage of None to drop estimator in ensemble and behaviour param of IsolationForest

* remove support for drop=None in Voting

* removed some warning decorators

* remove feature_extraction.extract_patches

* removed VectorizerMixin and copy parameter from TFIDFVectorizer

* kernel.set_params now raises attributeerror

* removed fig from plot_partial_dependence

* removed iid parameter of search estimators

* removed brier_scorer

* raise error in split when shuffle is False and random_state is not None

* removed MultiOutputEstimator

* removed base classes of NaiveBayes

* removed drop from pipeline

* removed utils in random_projection

* removed presort and classes_ in trees

* flake8

* fixed some tests

* flake

* fixed docstring

* fixed other one

* some left

* mmmm
2020-05-20 16:04:14 -04:00
Roman Yurchak 1cbe59ee06
CI Check for unused imports when linting (#16678)
* Check for missing imports in linting

* Exclude externals

* Remove unused imports
2020-03-12 12:56:35 +01:00
Sergul Aydore 78dc5974d5
TST check sample_weight shape added to common tests (#11598) 2020-02-21 10:04:09 -05:00
Nicolas Hug 42e17b3487 MNT Removed deprecated attributes and parameters -- ctnd (#15804) 2019-12-13 15:05:51 -05:00