README.md 9.72 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
[![Python-package GitHub Actions Build Status](https://github.com/microsoft/LightGBM/workflows/Python-package/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions)
7
[![R-package GitHub Actions Build Status](https://github.com/microsoft/LightGBM/workflows/R-package/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions)
8
[![CUDA Version GitHub Actions Build Status](https://github.com/microsoft/LightGBM/workflows/CUDA%20Version/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions)
9
[![Static Analysis GitHub Actions Build Status](https://github.com/microsoft/LightGBM/workflows/Static%20Analysis/badge.svg?branch=master)](https://github.com/microsoft/LightGBM/actions)
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/workflows/Link%20checks/badge.svg)](https://github.com/microsoft/LightGBM/actions?query=workflow%3A%22Link+checks%22)
14
15
16
[![License](https://img.shields.io/github/license/microsoft/lightgbm.svg)](https://github.com/microsoft/LightGBM/blob/master/LICENSE)
[![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)
Nikita Titov's avatar
Nikita Titov committed
17
[![CRAN Version](https://www.r-pkg.org/badges/version/lightgbm)](https://cran.r-project.org/package=lightgbm)
Guolin Ke's avatar
Guolin Ke committed
18

19
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
20

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

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

Andrew Ziem's avatar
Andrew Ziem committed
29
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.
30

31
[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
32

33
34
35
Get Started and Documentation
-----------------------------

36
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.
37
38
39

Next you may want to read:

40
41
42
- [**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.
43
- [**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.
44
- [**Laurae++ interactive documentation**](https://sites.google.com/view/lauraepp/parameters) is a detailed guide for hyperparameters.
45
46
- [**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://github.com/microsoft/FLAML/blob/main/notebook/flaml_lightgbm.ipynb)).
- [**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/tree/master/examples/lightgbm)).
47
- [**Understanding LightGBM Parameters (and How to Tune Them using Neptune)**](https://neptune.ai/blog/lightgbm-parameters-guide).
48
49
50

Documentation for contributors:

51
52
- [**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).
53

wxchan's avatar
wxchan committed
54
55
News
----
56

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

59
Some old update logs are available at [Key Events](https://github.com/microsoft/LightGBM/blob/master/docs/Key-Events.md) page.
60

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

64
65
FLAML (AutoML library for hyperparameter optimization): https://github.com/microsoft/FLAML

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

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

70
71
72
73
JPMML (Java PMML converter): https://github.com/jpmml/jpmml-lightgbm

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
cuML Forest Inference Library (GPU-accelerated inference): https://github.com/rapidsai/cuml

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

82
83
m2cgen (model appliers for various languages): https://github.com/BayesWitnesses/m2cgen

84
85
leaves (Go model applier): https://github.com/dmitryikh/leaves

86
87
88
ONNXMLTools (ONNX converter): https://github.com/onnx/onnxmltools

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

90
91
Shapash (model visualization and interpretation): https://github.com/MAIF/shapash

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

94
SynapseML (LightGBM on Spark): https://github.com/microsoft/SynapseML
95

96
97
Kubeflow Fairing (LightGBM on Kubernetes): https://github.com/kubeflow/fairing

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

100
101
lightgbm_ray (LightGBM on Ray): https://github.com/ray-project/lightgbm_ray

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

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

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

108
Ruby gem: https://github.com/ankane/lightgbm-ruby
109

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

112
113
lightgbm-rs (Rust binding): https://github.com/vaaaaanquish/lightgbm-rs

Nikita Titov's avatar
Nikita Titov committed
114
MLflow (experiment tracking, model monitoring framework): https://github.com/mlflow/mlflow
115
116
117

`{treesnip}` (R `{parsnip}`-compliant interface): https://github.com/curso-r/treesnip

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

120
121
Support
-------
122

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

Guolin Ke's avatar
Guolin Ke committed
126
127
128
How to Contribute
-----------------

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

Guolin Ke's avatar
Guolin Ke committed
131
Microsoft Open Source Code of Conduct
132
133
-------------------------------------

Guolin Ke's avatar
Guolin Ke committed
134
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
135

136
137
Reference Papers
----------------
Guolin Ke's avatar
Guolin Ke committed
138

139
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://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision-tree)". Advances in Neural Information Processing Systems 30 (NIPS 2017), pp. 3149-3157.
Guolin Ke's avatar
Guolin Ke committed
140

141
Qi Meng, Guolin Ke, Taifeng Wang, Wei Chen, Qiwei Ye, Zhi-Ming Ma, Tie-Yan Liu. "[A Communication-Efficient Parallel Algorithm for Decision Tree](http://papers.nips.cc/paper/6380-a-communication-efficient-parallel-algorithm-for-decision-tree)". Advances in Neural Information Processing Systems 29 (NIPS 2016), pp. 1279-1287.
Guolin Ke's avatar
Guolin Ke committed
142

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

145
146
**Note**: If you use LightGBM in your GitHub projects, please add `lightgbm` in the `requirements.txt`.

147
148
License
-------
149

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