Skip to main content

Neptune.ai LightGBM integration library

Project description

Neptune + LightGBM Integration

Experiment tracking, model registry, data versioning, and live model monitoring for LightGBM trained models.

What will you get with this integration?

  • Log, display, organize, and compare ML experiments in a single place
  • Version, store, manage, and query trained models, and model building metadata
  • Record and monitor model training, evaluation, or production runs live

What will be logged to Neptune?

  • training and validation metrics,
  • parameters,
  • feature names, num_features, and num_rows for the train set,
  • hardware consumption (CPU, GPU, memory),
  • stdout and stderr logs,
  • training code and git commit information.
  • other metadata

image Example dashboard with train-valid metrics and selected parameters

Resources

Example

# On the command line:
pip install neptune-client lightgbm neptune-lightgbm
# In Python:
import lightgbm as lgb
import neptune.new as neptune
from neptune.new.integrations.lightgbm import NeptuneCallback

# Start a run
run = neptune.init(
    project="common/lightgbm-integration",
    api_token="ANONYMOUS",
)

# Create a NeptuneCallback instance
neptune_callback = NeptuneCallback(run=run)

# Prepare datasets
...
lgb_train = lgb.Dataset(X_train, y_train)

# Define model parameters
params = {
    "boosting_type": "gbdt",
    "objective": "multiclass",
    "num_class": 10,
    ...
}

# Train the model
gbm = lgb.train(
    params,
    lgb_train,
    callbacks=[neptune_callback],
)

Support

If you got stuck or simply want to talk to us, here are your options:

  • Check our FAQ page
  • You can submit bug reports, feature requests, or contributions directly to the repository.
  • Chat! When in the Neptune application click on the blue message icon in the bottom-right corner and send a message. A real person will talk to you ASAP (typically very ASAP),
  • You can just shoot us an email at support@neptune.ai

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

neptune_lightgbm-0.10.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

neptune_lightgbm-0.10.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file neptune_lightgbm-0.10.0.tar.gz.

File metadata

  • Download URL: neptune_lightgbm-0.10.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for neptune_lightgbm-0.10.0.tar.gz
Algorithm Hash digest
SHA256 74ef27c91c3661af1893c79c47c756287678606f40fc13de754759e25df7b09d
MD5 7282894ad8f3ff029bf4b9b7959a70bf
BLAKE2b-256 858a98bb3c0a46a53136b7d48a8a1805dc1741d051950d6ad0430816203ac966

See more details on using hashes here.

File details

Details for the file neptune_lightgbm-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for neptune_lightgbm-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3af3ce03a7c4a20e6fe6b22c1d843a30ed6dc6ef14de3a203d6b8f9be3d3a33
MD5 8d37303d7d86bd48232ae5a354a3262c
BLAKE2b-256 34b05d4018381dac1986824f0220856b71718822ba35004b7dab8b5d215c43d2

See more details on using hashes here.

Supported by

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