README.md 11.9 KB
Newer Older
1
<img src=https://github.com/microsoft/LightGBM/blob/master/docs/logo/LightGBM_logo_black_text.svg width=300 />
Guolin Ke's avatar
Guolin Ke committed
2
3
4

Light Gradient Boosting Machine
===============================
The Gitter Badger's avatar
The Gitter Badger committed
5

6
7
8
9
[![Python-package GitHub Actions Build Status](https://github.com/microsoft/LightGBM/actions/workflows/python_package.yml/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions/workflows/python_package.yml)
[![R-package GitHub Actions Build Status](https://github.com/microsoft/LightGBM/actions/workflows/r_package.yml/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions/workflows/r_package.yml)
[![CUDA Version GitHub Actions Build Status](https://github.com/microsoft/LightGBM/actions/workflows/cuda.yml/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions/workflows/cuda.yml)
[![Static Analysis GitHub Actions Build Status](https://github.com/microsoft/LightGBM/actions/workflows/static_analysis.yml/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions/workflows/static_analysis.yml)
10
[![Azure Pipelines Build Status](https://lightgbm-ci.visualstudio.com/lightgbm-ci/_apis/build/status/Microsoft.LightGBM?branchName=master)](https://lightgbm-ci.visualstudio.com/lightgbm-ci/_build/latest?definitionId=1)
Nikita Titov's avatar
Nikita Titov committed
11
[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/1ys5ot401m0fep6l/branch/master?svg=true)](https://ci.appveyor.com/project/guolinke/lightgbm/branch/master)
12
[![Documentation Status](https://readthedocs.org/projects/lightgbm/badge/?version=latest)](https://lightgbm.readthedocs.io/)
13
[![Link checks](https://github.com/microsoft/LightGBM/actions/workflows/lychee.yml/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions/workflows/lychee.yml)
14
[![License](https://img.shields.io/github/license/microsoft/lightgbm.svg)](https://github.com/microsoft/LightGBM/blob/master/LICENSE)
15
[![EffVer Versioning](https://img.shields.io/badge/version_scheme-EffVer-0097a7)](https://jacobtomlinson.dev/effver)
16
[![StackOverflow questions](https://img.shields.io/stackexchange/stackoverflow/t/lightgbm?logo=stackoverflow&logoColor=white&label=StackOverflow%20questions)](https://stackoverflow.com/questions/tagged/lightgbm?sort=votes)
17
18
[![Python Versions](https://img.shields.io/pypi/pyversions/lightgbm.svg?logo=python&logoColor=white)](https://pypi.org/project/lightgbm)
[![PyPI Version](https://img.shields.io/pypi/v/lightgbm.svg?logo=pypi&logoColor=white)](https://pypi.org/project/lightgbm)
19
[![conda Version](https://img.shields.io/conda/vn/conda-forge/lightgbm?logo=conda-forge&logoColor=white&label=conda)](https://anaconda.org/conda-forge/lightgbm)
Nikita Titov's avatar
Nikita Titov committed
20
[![CRAN Version](https://www.r-pkg.org/badges/version/lightgbm)](https://cran.r-project.org/package=lightgbm)
21
[![NuGet Version](https://img.shields.io/nuget/v/lightgbm?logo=nuget&logoColor=white)](https://www.nuget.org/packages/LightGBM)
Guolin Ke's avatar
Guolin Ke committed
22

23
LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed and efficient with the following advantages:
Guolin Ke's avatar
Guolin Ke committed
24

25
26
27
- Faster training speed and higher efficiency.
- Lower memory usage.
- Better accuracy.
28
- Support of parallel, distributed, and GPU learning.
29
- Capable of handling large-scale data.
Guolin Ke's avatar
Guolin Ke committed
30

31
For further details, please refer to [Features](https://github.com/microsoft/LightGBM/blob/master/docs/Features.rst).
Guolin Ke's avatar
Guolin Ke committed
32

Andrew Ziem's avatar
Andrew Ziem committed
33
Benefiting from these advantages, LightGBM is being widely-used in many [winning solutions](https://github.com/microsoft/LightGBM/blob/master/examples/README.md#machine-learning-challenge-winning-solutions) of machine learning competitions.
34

35
[Comparison experiments](https://github.com/microsoft/LightGBM/blob/master/docs/Experiments.rst#comparison-experiment) on public datasets show that LightGBM can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. What's more, [distributed learning experiments](https://github.com/microsoft/LightGBM/blob/master/docs/Experiments.rst#parallel-experiment) show that LightGBM can achieve a linear speed-up by using multiple machines for training in specific settings.
Guolin Ke's avatar
Guolin Ke committed
36

37
38
39
Get Started and Documentation
-----------------------------

40
Our primary documentation is at https://lightgbm.readthedocs.io/ and is generated from this repository. If you are new to LightGBM, follow [the installation instructions](https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html) on that site.
41
42
43

Next you may want to read:

44
45
46
- [**Examples**](https://github.com/microsoft/LightGBM/tree/master/examples) showing command line usage of common tasks.
- [**Features**](https://github.com/microsoft/LightGBM/blob/master/docs/Features.rst) and algorithms supported by LightGBM.
- [**Parameters**](https://github.com/microsoft/LightGBM/blob/master/docs/Parameters.rst) is an exhaustive list of customization you can make.
47
- [**Distributed Learning**](https://github.com/microsoft/LightGBM/blob/master/docs/Parallel-Learning-Guide.rst) and [**GPU Learning**](https://github.com/microsoft/LightGBM/blob/master/docs/GPU-Tutorial.rst) can speed up computation.
48
- [**FLAML**](https://www.microsoft.com/en-us/research/project/fast-and-lightweight-automl-for-large-scale-data/articles/flaml-a-fast-and-lightweight-automl-library/) provides automated tuning for LightGBM ([code examples](https://microsoft.github.io/FLAML/docs/Examples/AutoML-for-LightGBM/)).
49
- [**Optuna Hyperparameter Tuner**](https://medium.com/optuna/lightgbm-tuner-new-optuna-integration-for-hyperparameter-optimization-8b7095e99258) provides automated tuning for LightGBM hyperparameters ([code examples](https://github.com/optuna/optuna-examples/blob/main/lightgbm/lightgbm_tuner_simple.py)).
50
- [**Understanding LightGBM Parameters (and How to Tune Them using Neptune)**](https://neptune.ai/blog/lightgbm-parameters-guide).
51
52
53

Documentation for contributors:

54
55
- [**How we update readthedocs.io**](https://github.com/microsoft/LightGBM/blob/master/docs/README.rst).
- Check out the [**Development Guide**](https://github.com/microsoft/LightGBM/blob/master/docs/Development-Guide.rst).
56

wxchan's avatar
wxchan committed
57
58
News
----
59

60
Please refer to changelogs at [GitHub releases](https://github.com/microsoft/LightGBM/releases) page.
Guolin Ke's avatar
Guolin Ke committed
61

62
External (Unofficial) Repositories
63
----------------------------------
64

65
66
67
Projects listed here offer alternative ways to use LightGBM.
They are not maintained or officially endorsed by the `LightGBM` development team.

68
69
JPMML (Java PMML converter): https://github.com/jpmml/jpmml-lightgbm

Nikita Titov's avatar
Nikita Titov committed
70
71
Nyoka (Python PMML converter): https://github.com/SoftwareAG/nyoka

72
73
Treelite (model compiler for efficient deployment): https://github.com/dmlc/treelite

Nikita Titov's avatar
Nikita Titov committed
74
75
lleaves (LLVM-based model compiler for efficient inference): https://github.com/siboehm/lleaves

76
77
Hummingbird (model compiler into tensor computations): https://github.com/microsoft/hummingbird

78
79
GBNet (use `LightGBM` as a [PyTorch Module](https://docs.pytorch.org/docs/stable/generated/torch.nn.Module.html)): https://github.com/mthorrell/gbnet

80
81
cuML Forest Inference Library (GPU-accelerated inference): https://github.com/rapidsai/cuml

82
daal4py (Intel CPU-accelerated inference): https://github.com/intel/scikit-learn-intelex/tree/master/daal4py
83

84
85
m2cgen (model appliers for various languages): https://github.com/BayesWitnesses/m2cgen

86
87
leaves (Go model applier): https://github.com/dmitryikh/leaves

88
89
90
ONNXMLTools (ONNX converter): https://github.com/onnx/onnxmltools

SHAP (model output explainer): https://github.com/slundberg/shap
91

92
93
Shapash (model visualization and interpretation): https://github.com/MAIF/shapash

94
95
dtreeviz (decision tree visualization and model interpretation): https://github.com/parrt/dtreeviz

96
97
supertree (interactive visualization of decision trees): https://github.com/mljar/supertree

98
SynapseML (LightGBM on Spark): https://github.com/microsoft/SynapseML
99

100
101
Kubeflow Fairing (LightGBM on Kubernetes): https://github.com/kubeflow/fairing

102
103
Kubeflow Operator (LightGBM on Kubernetes): https://github.com/kubeflow/xgboost-operator

104
105
lightgbm_ray (LightGBM on Ray): https://github.com/ray-project/lightgbm_ray

Sota Goto's avatar
Sota Goto committed
106
107
Ray (distributed computing framework): https://github.com/ray-project/ray

Nikita Titov's avatar
Nikita Titov committed
108
109
Mars (LightGBM on Mars): https://github.com/mars-project/mars

110
111
ML.NET (.NET/C#-package): https://github.com/dotnet/machinelearning

112
113
LightGBM.NET (.NET/C#-package): https://github.com/rca22/LightGBM.Net

114
LightGBM Ruby (Ruby gem): https://github.com/ankane/lightgbm-ruby
115

116
117
LightGBM4j (Java high-level binding): https://github.com/metarank/lightgbm4j

118
119
120
121
LightGBM4J (JVM interface for LightGBM written in Scala): https://github.com/seek-oss/lightgbm4j

Julia-package: https://github.com/IQVIA-ML/LightGBM.jl

122
lightgbm3 (Rust binding): https://github.com/Mottl/lightgbm3-rs
123

124
125
MLServer (inference server for LightGBM): https://github.com/SeldonIO/MLServer

Nikita Titov's avatar
Nikita Titov committed
126
MLflow (experiment tracking, model monitoring framework): https://github.com/mlflow/mlflow
127

128
129
130
131
132
133
134
135
136
137
138
139
FLAML (AutoML library for hyperparameter optimization): https://github.com/microsoft/FLAML

MLJAR AutoML (AutoML on tabular data): https://github.com/mljar/mljar-supervised

Optuna (hyperparameter optimization framework): https://github.com/optuna/optuna

LightGBMLSS (probabilistic modelling with LightGBM): https://github.com/StatMixedML/LightGBMLSS

mlforecast (time series forecasting with LightGBM): https://github.com/Nixtla/mlforecast

skforecast (time series forecasting with LightGBM): https://github.com/JoaquinAmatRodrigo/skforecast

140
`{bonsai}` (R `{parsnip}`-compliant interface): https://github.com/tidymodels/bonsai
141

142
`{mlr3extralearners}` (R `{mlr3}`-compliant interface): https://github.com/mlr-org/mlr3extralearners
143

144
145
lightgbm-transform (feature transformation binding): https://github.com/microsoft/lightgbm-transform

146
147
`postgresml` (LightGBM training and prediction in SQL, via a Postgres extension): https://github.com/postgresml/postgresml

148
149
`pyodide` (run `lightgbm` Python-package in a web browser): https://github.com/pyodide/pyodide

150
151
`vaex-ml` (Python DataFrame library with its own interface to LightGBM): https://github.com/vaexio/vaex

152
153
Support
-------
154

155
- Ask a question [on Stack Overflow with the `lightgbm` tag](https://stackoverflow.com/questions/ask?tags=lightgbm), we monitor this for new questions.
156
- Open **bug reports** and **feature requests** on [GitHub issues](https://github.com/microsoft/LightGBM/issues).
157

Guolin Ke's avatar
Guolin Ke committed
158
159
160
How to Contribute
-----------------

161
162
Check [CONTRIBUTING](https://github.com/microsoft/LightGBM/blob/master/CONTRIBUTING.md) page.

Guolin Ke's avatar
Guolin Ke committed
163
Microsoft Open Source Code of Conduct
164
165
-------------------------------------

Guolin Ke's avatar
Guolin Ke committed
166
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Guolin Ke's avatar
Guolin Ke committed
167

168
169
Reference Papers
----------------
Guolin Ke's avatar
Guolin Ke committed
170

171
Yu Shi, Guolin Ke, Zhuoming Chen, Shuxin Zheng, Tie-Yan Liu. "Quantized Training of Gradient Boosting Decision Trees" ([link](https://proceedings.neurips.cc/paper/2022/hash/77911ed9e6e864ca1a3d165b2c3cb258-Abstract.html)). Advances in Neural Information Processing Systems 35 (NeurIPS 2022), pp. 18822-18833.
172

173
Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, Tie-Yan Liu. "[LightGBM: A Highly Efficient Gradient Boosting Decision Tree](https://proceedings.neurips.cc/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html)". Advances in Neural Information Processing Systems 30 (NIPS 2017), pp. 3149-3157.
Guolin Ke's avatar
Guolin Ke committed
174

175
Qi Meng, Guolin Ke, Taifeng Wang, Wei Chen, Qiwei Ye, Zhi-Ming Ma, Tie-Yan Liu. "[A Communication-Efficient Parallel Algorithm for Decision Tree](https://proceedings.neurips.cc/paper/2016/hash/10a5ab2db37feedfdeaab192ead4ac0e-Abstract.html)". Advances in Neural Information Processing Systems 29 (NIPS 2016), pp. 1279-1287.
Guolin Ke's avatar
Guolin Ke committed
176

177
Huan Zhang, Si Si and Cho-Jui Hsieh. "[GPU Acceleration for Large-scale Tree Boosting](https://arxiv.org/abs/1706.08359)". SysML Conference, 2018.
178

179
180
License
-------
181

182
This project is licensed under the terms of the MIT license. See [LICENSE](https://github.com/microsoft/LightGBM/blob/master/LICENSE) for additional details.