verta_callback

verta.integrations.xgboost.verta_callback(run)

XGBoost callback that automates logging to Verta during booster training.

This callback logs eval_metrics passed into xgb.train().

See our GitHub repository for an example of this intergation in action.

New in version 0.13.20.

Parameters

run (ExperimentRun) – Experiment Run tracking this model.

Examples

from verta.integrations.xgboost import verta_callback
run = client.set_experiment_run()
run.log_hyperparameters(params)
bst = xgb.train(
    params, dtrain,
    evals=[(dtrain, "train")],
    callbacks=[verta_callback(run)],
)