Commit Graph

124 Commits

Author SHA1 Message Date
Thomas J. Fan d4aad64b1e
MNT Update to black 22.3.0 to resolve click error (#22983)
* MNT Update to black 22.3.0 to resolve click error

* STY Update for new black version
2022-03-29 12:04:41 +02:00
Thomas J. Fan 4408dfb86b
FIX Removes warning in HGBT when fitting on dataframes (#22908) 2022-03-25 10:56:49 +01:00
Christian Lorentzen 5ad3421a5b
FEA add quantile HGBT (#21800) 2022-02-22 17:03:14 +01:00
Jérémie du Boisberranger 5c7dac0131
FIX Missing num_threads in some HGBT pranges (#22566)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2022-02-21 17:04:14 +01:00
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Sultan Orazbayev cd892f9688
DOC use the arxiv directive in the docstrings (#21418)
Co-authored-by: aufarkari <aufar.di.sini@gmail.com>
Co-authored-by: Chiara Marmo <cmarmo@users.noreply.github.com>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2022-01-28 17:55:55 +01:00
Ross Barnowski 24106c2149
DOC Fix incorrect heading underline length in docstrings (#22278) 2022-01-24 09:58:33 -05:00
Christian Lorentzen 4e974e0d5e
ENH Replace loss module HGBT (#20811) 2022-01-11 15:02:41 -05:00
Thomas J. Fan fb53986483
MNT Fixes deprecation error in [scipy-dev] (#21812) 2021-11-30 11:46:32 +01:00
Jérémie du Boisberranger 1f8825c8dd
MNT Centralize common cython compiler directives (#21512) 2021-11-03 13:26:23 +01:00
Luiz Eduardo Amaral c23ff7ea15
DOC Remove deprecated loss function names from docstrings (#21314) 2021-10-14 18:07:10 +02:00
Christian Lorentzen b6f11554f1
FIX out of bound error in split_indices (#21130)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-10-06 15:05:57 +02:00
Thomas J. Fan a2eb04da26
TST Adjust learning rate to compare with LightGBM 3.X (#21082)
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
2021-09-24 11:09:33 +02:00
Juan Martin Loyola 01b9b5ae21
DOC Fix sphinx's links to Glossary (#21094) 2021-09-21 10:01:17 -04:00
Dimitri Papadopoulos Orfanos f71c031314
DOC Typos found by codespell (#21069) 2021-09-17 19:04:54 +02:00
James Lamb 47b82a567f FIX removes duplicate 'min_data_in_bin' in lightgbm parameters 2021-09-01 18:04:03 -07:00
Thomas J. Fan 786c4e5e39
DOC Adds feature_names_in_ to docstrings (#20787) 2021-08-26 13:44:45 +02:00
Juan Martin Loyola 3cde262274
DOC Ensures that HistGradientBoostingRegressor passes numpydoc validation (#20700)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-08-07 19:35:46 +02:00
Guillaume Lemaitre fee4982639 DOC fix hyperlink in HistGradientBoostingClassifier docstring 2021-08-07 17:39:39 +02:00
Juan Martin Loyola 05babc092a
DOC Ensures that HistGradientBoostingClassifier passes numpydoc validation (#20693)
Co-authored-by: glemaitre <g.lemaitre58@gmail.com>
2021-08-07 11:26:54 +02:00
Thomas J. Fan 99410b1bde
ENH Uses _openmp_effective_n_threads to set the number of threads in HistGradientBoosting* (#20477) 2021-07-09 10:13:39 +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 1cd282d600
DOC add n_features_in_ in the documentation (#20236) 2021-06-09 16:58:03 +02:00
Chiara Marmo 40b45e6b7c
[MRG] CI Push Scipy minimum version to 1.1.0. Remove Python 3.6 from builds. (#20069)
* Push scipy min version to 1.0.0

* Update all ubuntu images to 20.04 focal.

* Add ubuntu images 18.04 bionic and scipy fron conda-forge.

* Fix conditions.

* Pin python 3.6 for ubuntu bionic.

* Change pipeline name.

* Change matrix element name.

* Keep python 3.9 from system not conda in Ubuntu 20.04.

* Remove python directive when unnecessary.

* Cleanup.

* Downgrade to python 3.6 as scipy 1.0.0 is incompatible with 3.8.

* Fix comment.

* Fix comment.

* Pin pytest again as we are forced to use 3.6.

* Move to conda installer for 32bit linux.

* Install miniconda for ubuntu 32bit.

* Install wget for ubuntu 32bit.

* Revert 32bit OS to ubuntu bionic 18.04.

* Install scipy from pip in 32bit system.

* Fix doctest failures.

* Revert example rendering.

* Relax pytest version in ubuntu install.

* Skip failing tests.

* Put comment at the right place.

* Remove python3.6. Ubuntu32 still needs to be adapted.

* Push numpy and scipy min versions for compatibility with 3.7.

* Push matplotlib min version for compatibility with 3.7. Install numpy via pip in 32bit linux.

* Install numpy before scipy in Linux 32bit.

* Pass numpy version to linux32.

* Test 32bit architecture on debian buster (still exists for 32bit with python 3.7).

* Install matplotlib from distribution.

* Syntax error...

* Stick to the numpy debian version to avoid Expected 124 from C header, got 112 from PyObject error.

* Clean comments.

* Revert skip in doctest to check with new dependencies.

* Rename distrib.

* Skip again...

* Fix test on check_array.

* Remove comment and fix lint at the same time.

* Clean import.

* Increase atol in test_derivatives to make the test pass in py37_conda_openblas environment.

* Avoid sparse matrix dependent on scipy version.

* Skip docstring test for pandas versions less then 1.1.0.

* Fix lint error.

* Empty commit to force checks.

* Add minimal dependencies in changelog.

* Update to python 3.7 CircleCI and Travis builds.

* Move to debian buster for python3.7 dependencies.

* Fix the container tag.

* Lower the minimal pandas version for compatibility with python 3.7.
2021-05-18 16:09:36 +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
Christian Lorentzen 2bd3a4db52
ENH Consistent loss name for absolute error (#19733) 2021-05-10 22:10:21 +02:00
Nicolas Hug 309f135c32
MNT Remove HistGradientBoosting from experimental (#19799) 2021-04-02 16:40:20 +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
Thomas J. Fan 95fa18f278
TST Fixes docstring ordering and test_docstring_parameters (#19048) 2021-02-12 11:35:05 +01:00
vadim-ushtanit 087a684191
FIX index sample_weight in least_absolute_deviation loss in HistGradientBoosting (#19407)
Co-authored-by: Vadim Ushtanit <vadim.ushtanit@gmail.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-02-10 09:49:30 +01:00
Thomas J. Fan b94332434d
API Removes tol=None option from HistGradientBoosting* (#19296)
* API Removes tol=None option from HistGradient*

* Pass tol=0.0 instead of tol=None in early stopping tests

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
2021-01-29 15:07:25 +01:00
Chiara Marmo cdde01174e
TST Fix DeprecationWarning for np.bool type. (#18927)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-11-27 11:03:44 -05:00
Thomas J. Fan 9d394c2daa
FIX Fixes histgradientboosting for cython 3.0 [scipy-dev] (#18883) 2020-11-25 21:38:25 +01:00
Thomas J. Fan b4453f126f
ENH Add Categorical support for HistGradientBoosting (#18394)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@gmail.com>
2020-11-16 23:10:12 +01:00
Thomas J. Fan cd673475bd
CLN Refactors find binning threshold (#18395) 2020-10-14 18:42:56 +02:00
Ankit Choraria 3b98f19c6b
DOC fix docstring for monotonic constraing in hist-GBDT (#18579) 2020-10-09 08:13:00 -04:00
Albert Villanova del Moral 7e545e1724
DOC Fix versionadded for 0.23 (#18522) 2020-10-05 10:23:32 +11:00
Nicolas Hug df61e9ed98
FIX accept uint8 X in hist-gbdt.predict (#18410)
* fixed dtype issue

* whatsnew

* dont pass lists
2020-09-26 09:55:35 +02:00
Nicolas Hug 4a2de5b864
[MRG] MNT Initialize histograms in parallel and don't call np.zero in Hist-GBDT (#18341) 2020-09-04 15:48:39 +02:00
Olivier Grisel e325f16d6a
ENH Break cyclic references in Histogram GBRT (#18334)
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
2020-09-03 15:47:25 -04:00
Albert Villanova del Moral 875d32fe55
DOC Fix versionadded/versionchanged for 0.24 (#18312) 2020-09-01 10:51:01 +02:00
Frans Larsson e126a85ffb
DOC Fix docstring in grower.py following doc guideline (#18206)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-26 11:06:37 +02:00
Nicolas Hug 754cac3ee9
MNT change bin_thresholds param name (#18179) 2020-08-21 16:07:55 +02:00
sadak e81b1c0a1b
DOC fix docstring in binning.py file (#18063)
Co-authored-by: Frans Larsson <frans.larsson@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2020-08-21 14:05:41 +02:00
Frans Larsson 359c6bca25
DOC Fix docstring binning.py module (#18207)
Co-authored-by: Juan Carlos Alfaro Jiménez <JuanCarlos.Alfaro@uclm.es>
2020-08-21 11:27:24 +02:00
Juan Carlos Alfaro Jiménez 0cfe98b9f8
FIX Change MRO for some estimators (#17934) 2020-07-17 12:26:36 +02:00
Thomas J. Fan 1f7053f8c4
ENH Uses binned values from training to find missing values (#17736)
* ENH Uses training data to find missing values

* CLN Uses the binned data to find missing value

* ENH Uses binned values from training to find missing values
2020-07-16 15:04:26 +02:00
Hoda1394 dd9fbe5e8a
DOC updated documentation default value for gradient_boosting (#17909) 2020-07-12 00:10:55 -04:00