clearml-docs/docs/guides/frameworks/xgboost/xgboost_sample.md
2022-06-30 20:16:13 +03:00

1.6 KiB
Raw Blame History

title
XGBoost and scikit-learn

The xgboost_sample.py example demonstrates integrating ClearML into code that uses XGBoost.

The example does the following:

  • Trains a network on the scikit-learn iris classification dataset using XGBoost
  • Scores accuracy using scikit-learn
  • ClearML automatically logs the input model registered by XGBoost, and the output model (and its checkpoints), feature importance plot, and tree plot created with XGBoost.
  • Creates an experiment named XGBoost simple example, which is associated with the examples project.

Plots

The feature importance plot and tree plot appear in the project's page in the ClearML web UI, under PLOTS.

Feature importance plot

Tree plot

Console

All other console output appear in CONSOLE.

image

Artifacts

Models created by the experiment appear in the experiments ARTIFACTS tab. ClearML automatically logs and tracks models and any snapshots created using XGBoost.

image

Clicking on the model's name takes you to the models page, where you can view the models details and access the model.

image