Skip to main content

Pure-Rust LightGBM (CubeCL) — Python bindings mirroring the official lightgbm API

Project description

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.

Project details


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.5.tar.gz (4.1 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.5-cp311-abi3-win_amd64.whl (7.6 MB view details)

Uploaded CPython 3.11+Windows x86-64

lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl (8.3 MB view details)

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

lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file lightgbm_rs-0.0.5.tar.gz.

File metadata

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

File hashes

Hashes for lightgbm_rs-0.0.5.tar.gz
Algorithm Hash digest
SHA256 79564ebdc907c71c4c083773258dae9ace5496b822dc961234f13c8b878cec54
MD5 7c15562a49f862cd887f7eb51bec27e0
BLAKE2b-256 92e9716f050f7bf5b412a87cc6a07257cccae17dc8a541e2d45d8c6625db20d8

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for lightgbm_rs-0.0.5-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7c818f858bc106da18e2abfc25e4258cec61cbef5e7ad46df0fb3e8fc5a091c6
MD5 18fbb511cfdcec552fabbdb2dba01b60
BLAKE2b-256 ec82b1643c70ece5b10de7d7f5f03e49ed787c14f361c14b8abe3a52f9372a0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightgbm_rs-0.0.5-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f7c9867d5ef4dc7e131c5ca4f30bb82690eda4a35161879cfc078ec412ba402f
MD5 109ca3f44b17d1f2ca2a891c35bc1884
BLAKE2b-256 2327bc573c4503d46cc5da7e70a6b968195bcb851cb0791e7e9b9eacb92848ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightgbm_rs-0.0.5-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.5-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightgbm_rs-0.0.5-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95a3f381198f84a790163e397b074b7fa185c881a9a643745eb1f0d377ca5251
MD5 12c1f67f5307dafaf601c9c48a8be5ea
BLAKE2b-256 08917920cd7083e9fd13c98cbfb45093e85f339334a00f3fd7c69fd092c7e976

See more details on using hashes here.

Provenance

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page