Skip to main content

Documentation · Release Notes
Open Source Apache 2.0
CI/CD github-actions Documentation status badge
Code !pypi !python-versions Code coverage status badge
Downloads Pepy Total Downlods
Citation Arxiv link

LightGBMLSS - An extension of LightGBM to probabilistic modelling

We introduce a comprehensive framework that models and predicts the full conditional distribution of a univariate target as a function of covariates. Choosing from a wide range of continuous, discrete, and mixed discrete-continuous distributions, modelling and predicting the entire conditional distribution greatly enhances the flexibility of LightGBM, as it allows to create probabilistic forecasts from which prediction intervals and quantiles of interest can be derived.

Features

:white_check_mark: Estimation of all distributional parameters.
:white_check_mark: Normalizing Flows allow modelling of complex and multi-modal distributions.
:white_check_mark: Mixture-Densities can model a diverse range of data characteristics.
:white_check_mark: Zero-Adjusted and Zero-Inflated Distributions for modelling excess of zeros in the data.
:white_check_mark: Automatic derivation of Gradients and Hessian of all distributional parameters using PyTorch.
:white_check_mark: Automated hyper-parameter search, including pruning, is done via Optuna.
:white_check_mark: The output of LightGBMLSS is explained using SHapley Additive exPlanations.
:white_check_mark: LightGBMLSS provides full compatibility with all the features and functionality of LightGBM.
:white_check_mark: LightGBMLSS is available in Python.

News

:boom: [2025-12-11] Release of v0.6.1 LightGBMLSS to PyPI. See the release notes for an overview.
:boom: [2024-01-19] Release of LightGBMLSS to PyPI.
:boom: [2023-08-28] Release of v0.4.0 introduces Mixture-Densities. See the release notes for an overview.
:boom: [2023-07-20] Release of v0.3.0 introduces Normalizing Flows. See the release notes for an overview.
:boom: [2023-06-22] Release of v0.2.2. See the release notes for an overview.
:boom: [2023-06-15] LightGBMLSS now supports Zero-Inflated and Zero-Adjusted Distributions.
:boom: [2023-05-26] Release of v0.2.1. See the release notes for an overview.
:boom: [2023-05-23] Release of v0.2.0. See the release notes for an overview.
:boom: [2022-01-05] LightGBMLSS now supports estimating the full predictive distribution via Expectile Regression.
:boom: [2022-01-05] LightGBMLSS now supports automatic derivation of Gradients and Hessians.
:boom: [2022-01-04] LightGBMLSS is initialized with suitable starting values to improve convergence of estimation.
:boom: [2022-01-04] LightGBMLSS v0.1.0 is released!

Installation

To install the development version, please use

pip install git+https://github.com/StatMixedML/LightGBMLSS.git

For the PyPI version, please use

pip install lightgbmlss

Available Distributions

Our framework is built upon PyTorch and Pyro, enabling users to harness a diverse set of distributional families. LightGBMLSS currently supports the following distributions.

How to Use

Please visit the example section for guidance on how to use the framework.

Documentation

For more information and context, please visit the documentation.

Feedback

We encourage you to provide feedback on how to enhance LightGBMLSS or request the implementation of additional distributions by opening a new discussion.

How to Cite

If you use LightGBMLSS in your research, please cite it as:

@misc{Maerz2023,
  author = {Alexander M\"arz},
  title = {{LightGBMLSS: An Extension of LightGBM to Probabilistic Modelling}},
  year = {2023},
  note = {GitHub repository, Version 0.6.1},
  howpublished = {\url{https://github.com/StatMixedML/LightGBMLSS}}
}

Reference Paper

Arxiv link
Arxiv link

Star History

Metadata

Release files for lightgbmlss 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lightgbmlss 0.6.1
File Size Uploaded
lightgbmlss-0.6.1.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for lightgbmlss 0.6.1
File Interpreter ABI Platform
lightgbmlss-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.8 MB

Release files / lightgbmlss-0.6.1.tar.gz

Download URL lightgbmlss-0.6.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bedb81e516f7ff95fecfe163c12652ec73ccbd8a5846ef14cc67255c5ef783b6
BLAKE2b-256 checksum
How to use checksums
2c809d31d1b78ef2c771028a2573baa1e9b4c91aa59981f594bd987b90325cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 11, 2025.

Transparency log

Release files / lightgbmlss-0.6.1-py3-none-any.whl

Download URL lightgbmlss-0.6.1-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b5132ea8503ccf4b1d537b62d4e8c4db4e420e8f273248b5047a838f38831bad
BLAKE2b-256 checksum
How to use checksums
d9d888621b0ba430b339a2b8d187ca78dbefb7f9cd3625019e518c1caaf81828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 11, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page