Skip to main content

Neptune.ai XGBoost integration library

Project description

Neptune + XGBoost integration

Experiment tracking, model registry, data versioning, and live model monitoring for XGBoost 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?

  • metrics,
  • parameters,
  • learning rate,
  • pickled model,
  • visualizations (feature importance chart and tree visualizations),
  • 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 xgboost>=1.3.0 neptune-xgboost

In Python:

import neptune
import xgboost as xgb
from neptune.integrations.xgboost import NeptuneCallback

# Start a run
run = neptune.init_run(
    project="common/xgboost-integration",
    api_token=neptune.ANONYMOUS_API_TOKEN,
)

# Create a NeptuneCallback instance
neptune_callback = NeptuneCallback(run=run, log_tree=[0, 1, 2, 3])

# Prepare datasets
...
data_train = xgb.DMatrix(X_train, label=y_train)

# Define model parameters
model_params = {
    "eta": 0.7,
    "gamma": 0.001,
    "max_depth": 9,
    ...
}

# Train the model and log metadata to the run in Neptune
xgb.train(
    params=model_params,
    dtrain=data_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_xgboost-1.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

neptune_xgboost-1.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file neptune_xgboost-1.1.0.tar.gz.

File metadata

  • Download URL: neptune_xgboost-1.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for neptune_xgboost-1.1.0.tar.gz
Algorithm Hash digest
SHA256 789c9c039ac8d277ccca078a9651e8d3fb20601af0d81377fc451cf3cdf21e1e
MD5 1187163004574ed5918df08e11cf6b51
BLAKE2b-256 15786c90f73e93011d82ad9f1d414276bc8561d2f03001fee6d1c2e1f8a0facf

See more details on using hashes here.

File details

Details for the file neptune_xgboost-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for neptune_xgboost-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36de7b356863ef3ccbfaa203ad5d76c2135ad234a49c482fb15006bee15edfb5
MD5 3cdbb16d8fce6f0e6bac15ce32a5a81e
BLAKE2b-256 ca4d547c1ff64156c96e5da6896c5cab57377a603ce41f8fcb5f9f810dffb42e

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