> ## Documentation Index
> Fetch the complete documentation index at: https://nixtlaverse.nixtla.io/llms.txt
> Use this file to discover all available pages before exploring further.

> spark XGBoost forecaster

# SparkXGBForecast

Wrapper of `xgboost.spark.SparkXGBRegressor` that adds an
`extract_local_model` method to get a local version of the trained model
and broadcast it to the workers.

### `SparkXGBForecast`

Bases: <code>[SparkXGBRegressor](#xgboost.spark.SparkXGBRegressor)</code>

#### `SparkXGBForecast.extract_local_model`

```python theme={null}
extract_local_model(trained_model)
```
