# LightGBM

Histogram\-based gradient\-boosting library for classification, regression and ranking with native categorical handling\.

ID: Q1662 · Revision: 1775

Type: software · License: Open source under the MIT license\.[^license] · Status: active

Website: https://lightgbm.readthedocs.io/



LightGBM is a gradient\-boosting framework that builds decision trees using binned feature values and leaf\-wise growth\. It supports classification, regression and ranking, with Python data interfaces and separate CPU and accelerator implementations\.[^features][^python][^install]

## Capabilities and substitutions

### Histogram tree boosting — supported

Offers regression, classification and ranking; leaf\-wise growth remains leaf\-wise even when maximum depth is limited\.[^features]

Use case: Boosted\-tree classification, regression and ranking on tabular data · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Categorical and sparse inputs — limited

Integer category codes and pandas categorical alignment are supported; negative category codes and unseen categories are treated as missing\. Sparse zero semantics depend on configuration\.[^advanced]

Use case: Boosted\-tree classification, regression and ranking on tabular data · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### GPU acceleration — limited

OpenCL, CUDA and ROCm are separate implementations with platform/build restrictions; macOS GPU builds are not supported by the installation guide\.[^install]

Use case: Boosted\-tree classification, regression and ranking on tabular data · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### [Substitute for XGBoost](/xgboost) — limited

Can replace XGBoost for training boosted\-tree classifiers, regressors or ranking models\. Requires retuning, verified category/missing\-value semantics and a new model, not direct artifact interchange\.[^features][^advanced][^target]

Use case: Boosted\-tree classification, regression and ranking on tabular data · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^features]: [LightGBM features](<https://lightgbm.readthedocs.io/en/stable/Features.html>) — Histogram algorithms, leaf\-wise growth and modeling tasks (vendor; retrieved 2026-10-07T16:58:47Z)

[^advanced]: [Advanced topics](<https://lightgbm.readthedocs.io/en/stable/Advanced-Topics.html>) — Missing values and categorical encoding (vendor; retrieved 2026-10-07T16:58:47Z)

[^python]: [Python\-package introduction](<https://lightgbm.readthedocs.io/en/stable/Python-Intro.html>) — Data interfaces, validation alignment and save/load (vendor; retrieved 2026-10-07T16:58:47Z)

[^install]: [Installation guide](<https://lightgbm.readthedocs.io/en/stable/Installation-Guide.html>) — CPU, OpenCL, CUDA and ROCm platform distinctions (vendor; retrieved 2026-10-07T16:58:59Z)

[^license]: [LightGBM license](<https://github.com/lightgbm-org/LightGBM/blob/main/LICENSE>) — MIT license (vendor; retrieved 2026-10-07T16:59:14Z)

[^target]: [XGBoost estimator interface](<https://xgboost.readthedocs.io/en/stable/python/sklearn_estimator.html>) — Classification, regression and ranking (vendor; retrieved 2026-10-07T16:58:00Z)

Source revision: https://substitutefor.net/entities/Q1662?revision=1775
