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 Distribution

lightgbm_rs-0.0.9.tar.gz (5.3 MB view details)

Uploaded Source

Built Distributions

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

lightgbm_rs-0.0.9-cp311-abi3-win_amd64.whl (34.7 MB view details)

Uploaded CPython 3.11+Windows x86-64

lightgbm_rs-0.0.9-cp311-abi3-manylinux_2_34_x86_64.whl (50.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

lightgbm_rs-0.0.9-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.9.tar.gz.

File metadata

  • Download URL: lightgbm_rs-0.0.9.tar.gz
  • Upload date:
  • Size: 5.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for lightgbm_rs-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c38fadbccd5ba1f952e9d89f07b420dfeca6ca014722478b81b1387aa0fc5c87
MD5 277b6abd744a769606bf24948f3726ed
BLAKE2b-256 49c32c7d932d563e5e7b0a32949477c9fe4823f2c7f4643d3219680e9ca54e30

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.9.tar.gz:

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.

File details

Details for the file lightgbm_rs-0.0.9-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: lightgbm_rs-0.0.9-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 34.7 MB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for lightgbm_rs-0.0.9-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 21f227fe901575b4818d7a6275c553dcdef34f9434b2827026ad3855720a6b9f
MD5 9be9b8caa087af0e4f4a694f8a5e1f04
BLAKE2b-256 fdeede8c1a592aaeab9698b22bf62b34230e4983ef4e683365bf34b6a5127892

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.9-cp311-abi3-win_amd64.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.

File details

Details for the file lightgbm_rs-0.0.9-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lightgbm_rs-0.0.9-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4164ea3aec0af9bb0e6a992cabf403bc689d848bdbbff2f9c3b4c0e1352ab54d
MD5 1eb7cb630334e8c606764f907d9473ef
BLAKE2b-256 a66278741ca871b1693dc6572c9a503296b19527e482cb276a4bbc6977ec8520

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.9-cp311-abi3-manylinux_2_34_x86_64.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.

File details

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

File metadata

File hashes

Hashes for lightgbm_rs-0.0.9-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 120ebf70c705561a5b6941ccfdedce8171c450f6fb28fd7dc401cffd03911b76
MD5 416fc3791a2b196ff9ac9c932a96b468
BLAKE2b-256 531724dc54ed8b8817a5d3c0f717b79850e2575751ab62b0a9f19592d2a7a963

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.9-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

This release

0.0.9 This release

4 files

0.0.7

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