Light Gradient Boosting Machine
Overview
Tree based algorithms can be improved by introducing boosting frameworks. 'LightGBM' is one such framework, based on Ke, Guolin et al. (2017) https://proceedings.neurips.cc/paper/2017/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html. This package offers an R interface to work with it. It is designed to be distributed and efficient with the following advantages: 1. Faster training speed and higher efficiency. 2. Lower memory usage. 3. Better accuracy. 4. Parallel learning supported. 5. Capable of handling large-scale data. In recognition of these advantages, 'LightGBM' has been widely-used in many winning solutions of machine learning competitions. Comparison experiments on public datasets suggest that 'LightGBM' can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. In addition, parallel experiments suggest that in certain circumstances, 'LightGBM' can achieve a linear speed-up in training time by using multiple machines.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-27
- WARNING9 OK, 3 NOTE, 2 WARNING2026-03-10
Documentation
- Help pages
- 40 (3 internal)
- Examples that run
- 0%26 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 79%
- Documented parameters
- 100%
- Return-value docs
- 93%
- Help pages citing references
- 8%
Also includes 10 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 14
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
14 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/lightgbm-org/lightgbm on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows
GitHub Pages site last deployed 2018-09-08
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-11-19Pull request: opened by its own account
- Claude CodePull requests: 5 from outside contributors, first on 2026-03-31, 5 from forks
- CursorPull requests: 1 from outside contributors, first on 2026-10-05, 1 from forks
Dependencies
Installing lightgbm adds 3 packages (2 with compiled code, 6.8 MB of source tarballs). Heaviest: data.table 5.7 MB, jsonlite 1.0 MB, R6 63 KB.
Show all 39 packagesHide all 39 packages
Code & Tests
Datasets
People & History
Previously maintained by Yu Shi (3.3.0 to 3.3.5) and Guolin Ke (3.0.0 to 3.2.1).
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- 4.7.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 4.6.02025-02-13 · diff ↗
- 4.5.02024-07-26 · diff ↗
- 4.4.0
- RR 4.4.0 released · 2024-04-24
- 4.3.0
- 4.2.02023-12-08 · diff ↗ ·
removed 3 exports
getinfo, lgb.unloader, setinfoadded 6 exports
getLGBMthreads, lgb.configure_fast_predict, lgb.drop_serialized, lgb.make_serializable, lgb.restore_handle, setLGBMthreads - RR 4.3.0 released · 2023-04-21
- 3.3.52023-01-16 · diff ↗
- 3.3.42022-12-16 · diff ↗
- 3.3.32022-10-10 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.3.22022-01-14 · diff ↗
- unarchivedReturned to CRAN2021-10-30
Show 13 earlier eventsHide 13 earlier events
- 3.3.12021-10-30 · diff ↗
- archivedRemoved from CRAN2021-10-25check problems were not corrected in time
- 3.3.0
- RR 4.1.0 released · 2021-05-18
- 3.2.12021-04-13 · diff ↗
- 3.2.02021-03-22 · diff ↗
- 3.1.12020-12-08 · diff ↗
- unarchivedReturned to CRAN2020-11-19
- 3.1.02020-11-19 · diff ↗ ·
removed 4 exports
lgb.prepare, lgb.prepare2, lgb.prepare_rules, lgb.prepare_rules2 - archivedRemoved from CRAN2020-10-02corrupting R's memory See the valgrind report of out-of-bounds write
- 3.0.0.22020-10-01 · diff ↗
- 3.0.02020-09-21
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-09-21
- Total releases
- 18 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 128 KB / 3 files
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lightgbm")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.