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, and
- training code and git commit information
- other metadata
Example dashboard with train-valid metrics and selected parameters
Resources
- Documentation
- Code example on GitHub
- Example of a run logged in the Neptune app
- Run example in Google Colab
Example
# On the command line:
pip install neptune-client xgboost>=1.3.0 neptune-xgboost
# In Python:
import neptune.new as neptune
import xgboost as xgb
from neptune.new.integrations.xgboost import NeptuneCallback
# Start a run
run = neptune.init(
project="common/xgboost-integration",
api_token="ANONYMOUS",
)
# 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
Release history Release notifications | RSS feed
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-0.10.1.tar.gz
(11.8 kB
view details)
Built Distribution
File details
Details for the file neptune_xgboost-0.10.1.tar.gz
.
File metadata
- Download URL: neptune_xgboost-0.10.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3615e805550afa58716a0f5eb4c5b17e467a79c100f3575e0769a8bb9f10b355 |
|
MD5 | 35213010b8ba0656afa5b4539f1fdf14 |
|
BLAKE2b-256 | 94f49ba9fbf7c950afeb4a46f995865e2ad1257f7ec5c5ff5dc6543ba618103e |
File details
Details for the file neptune_xgboost-0.10.1-py3-none-any.whl
.
File metadata
- Download URL: neptune_xgboost-0.10.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 257e98d2e13baa38d472c1d28abeccdc8ee6307f5b904e02596832c656a251fc |
|
MD5 | 6c1314de34941a4de8bac89d4c57610d |
|
BLAKE2b-256 | 07a6401bd5df1d13ec8c65c68c91fe5b1a31d758603d325d4adc607226c935b3 |