Skip to content
A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.
C++ Python R C SWIG CMake Other
Branch: master
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.ci [ci] make MiKTeX downloads more reliable (#3124) Jun 2, 2020
.github [ci] use GitHub Actions for R CI jobs (fixes #2353) (#3119) Jun 1, 2020
.nuget [ci] use raw strings in NuGet helper script (#2710) Jan 27, 2020
R-package Revert "re-order includes (fixes #3132) (#3133)" (#3153) Jun 5, 2020
compute @ 36c8913 [ci] update CI stuff (#2079) Apr 9, 2019
docker minor CI scripts update (#3019) Apr 24, 2020
docs [R-package] [docs] replace build_r_site.R with pkgdown::build_site() (#… May 17, 2020
examples [python] Re-enable scikit-learn 0.22+ support (#2949) Apr 10, 2020
helpers [python] save all param values into model file (#2589) Mar 6, 2020
include/LightGBM fix error C3861: '_BitScanReverse': identifier not found (#3141) Jun 5, 2020
pmml [docs][python] made OS detection more reliable and little docs improv… Jun 3, 2018
python-package [python][scikit-learn] add new attribute for used number of features (#… Jun 2, 2020
src Revert "re-order includes (fixes #3132) (#3133)" (#3153) Jun 5, 2020
swig [SWIG][mmlspark] allow allocating more than int max array (#2859) Apr 19, 2020
tests Path smoothing (#2950) May 3, 2020
windows [R-package] adding routine registration in R package (fixes #1910) (#… Apr 1, 2020
.appveyor.yml [ci] avoid duplicatte AppVeyor builds (#3096) May 16, 2020
.editorconfig added editorconfig (#2403) Sep 16, 2019
.gitignore [R-package] [docs] fix warnings in pkgdown site building (#3086) May 16, 2020
.gitmodules Initial GPU acceleration support for LightGBM (#368) Apr 9, 2017
.readthedocs.yml [ci][docs] Fix RTD builds (#3015) Apr 23, 2020
.travis.yml [ci] use GitHub Actions for R CI jobs (fixes #2353) (#3119) Jun 1, 2020
.vsts-ci.yml [ci] use GitHub Actions for R CI jobs (fixes #2353) (#3119) Jun 1, 2020
CMakeLists.txt [R-package] CMake fixes to support MSVC (#2963) May 2, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#803) Aug 18, 2017
CONTRIBUTING.md Better documentation for Contributing (#2781) Feb 22, 2020
LICENSE added editorconfig (#2403) Sep 16, 2019
README.md update link to Julia wrapper (#3021) Apr 24, 2020
VERSION.txt bump version for development (#2599) Nov 29, 2019
build_r.R [R-package] move R source files into R-package, reduce duplication in… May 25, 2020

README.md

LightGBM, Light Gradient Boosting Machine

Azure Pipelines Build Status Appveyor Build Status Travis Build Status Documentation Status License Python Versions PyPI Version Join Gitter at https://gitter.im/Microsoft/LightGBM Slack

LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed and efficient with the following advantages:

  • Faster training speed and higher efficiency.
  • Lower memory usage.
  • Better accuracy.
  • Support of parallel and GPU learning.
  • Capable of handling large-scale data.

For further details, please refer to Features.

Benefitting from these advantages, LightGBM is being widely-used in many winning solutions of machine learning competitions.

Comparison experiments on public datasets show that LightGBM can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. What's more, parallel experiments show that LightGBM can achieve a linear speed-up by using multiple machines for training in specific settings.

Get Started and Documentation

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 on that site.

Next you may want to read:

Documentation for contributors:

News

Please refer to changelogs at GitHub releases page.

Some old update logs are available at Key Events page.

External (Unofficial) Repositories

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

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

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

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

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

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

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

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

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

MMLSpark (LightGBM on Spark): https://github.com/Azure/mmlspark

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

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

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

Dask-LightGBM (distributed and parallel Python-package): https://github.com/dask/dask-lightgbm

Ruby gem: https://github.com/ankane/lightgbm

Support

How to Contribute

Check CONTRIBUTING page.

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Reference Papers

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". Advances in Neural Information Processing Systems 30 (NIPS 2017), pp. 3149-3157.

Qi Meng, Guolin Ke, Taifeng Wang, Wei Chen, Qiwei Ye, Zhi-Ming Ma, Tie-Yan Liu. "A Communication-Efficient Parallel Algorithm for Decision Tree". Advances in Neural Information Processing Systems 29 (NIPS 2016), pp. 1279-1287.

Huan Zhang, Si Si and Cho-Jui Hsieh. "GPU Acceleration for Large-scale Tree Boosting". SysML Conference, 2018.

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

License

This project is licensed under the terms of the MIT license. See LICENSE for additional details.

You can’t perform that action at this time.