Skip to main content

lightgbm-rs

Python bindings for LightGBM-rs — a pure-Rust reimplementation of Microsoft's LightGBM gradient-boosting library, numerically faithful to the C++ reference (~1e-6 absolute on the CPU anchor) and built on PyO3.

The package mirrors the official lightgbm low-level surface for the in-scope APIs, so you can switch import lightgbmimport lightgbm_rs:

import numpy as np
import lightgbm_rs as lgb

X = np.random.standard_normal((1000, 10))
y = X @ np.random.standard_normal(10)

ds = lgb.Dataset(X, y)
model = lgb.train({"objective": "regression", "num_leaves": 31}, ds, num_boost_round=100)
pred = model.predict(X)  # owned numpy array

Input is marshalled into owned Rust buffers and the GIL is released (Python::detach) around the CPU-bound train/predict, so background Python threads make progress during training.

Building from source

pip install maturin
maturin develop --release   # inside this directory, into your active venv

See the workspace root for the full project, license, and the numerical-parity contract.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lightgbm_rs-0.0.7-cp311-abi3-macosx_11_0_arm64.whl (41.7 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file lightgbm_rs-0.0.7-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightgbm_rs-0.0.7-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cb3cc55241295112d91777257b6fba5a3f5e29eb6a30366749ae38060bbafbe
MD5 35bbd55a075745f82602d5dbd075d990
BLAKE2b-256 bf6ae44916b05a85475988925708b2dd97a6ddd04af825322c5f9fa055ce508e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.7-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release-python.yml on BectorVoom/lightgbm_rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.10

4 files

0.0.9

4 files

This release

0.0.7 This release

1 file

0.0.5

4 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