---
title: Distributed training of XGBoost models using Scala | Databricks on AWS
source: https://docs.databricks.com/aws/en/machine-learning/train-model/xgboost-scala
ingestedAt: "2026-06-18T08:13:46.408Z"
---

*   [](https://docs.databricks.com/aws/en/)
*   [Machine learning](https://docs.databricks.com/aws/en/machine-learning/)
*   [Train models](https://docs.databricks.com/aws/en/machine-learning/train-model/)
*   [Databricks Runtime ML](https://docs.databricks.com/aws/en/machine-learning/databricks-runtime-ml)
*   [Model training examples](https://docs.databricks.com/aws/en/machine-learning/train-model/training-examples)
*   [Use XGBoost on Databricks](https://docs.databricks.com/aws/en/machine-learning/train-model/xgboost)
*   Distributed training of XGBoost models using Scala

Last updated on **Oct 10, 2023**

The example notebooks show how you can use XGBoost with MLlib:

*   The first example shows how to embed an XGBoost model into an MLlib ML pipeline.
*   The second example shows how to use MLlib cross validation to tune an XGBoost model.

#### XGBoost classification with ML pipeline notebook

#### XGBoost regression with cross-validation notebook
