<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/BoostedTreeRegressor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents20BoostedTreeRegressorV"
  },
  "title" : "BoostedTreeRegressor"
}
-->

# BoostedTreeRegressor

A gradient boosted decision tree regressor.

```
struct BoostedTreeRegressor<Annotation>
```

## Topics

### Creating a regressor

[`init(annotationColumnName: String, featureColumnNames: [String], configuration: BoostedTreeConfiguration)`](/documentation/CreateMLComponents/BoostedTreeRegressor/init(annotationColumnName:featureColumnNames:configuration:))

Creates a boosted tree regressor.

### Getting the properties

[`var annotationColumnID: ColumnID<Annotation>`](/documentation/CreateMLComponents/BoostedTreeRegressor/annotationColumnID)

The annotation column identifier.

[`var configuration: BoostedTreeConfiguration`](/documentation/CreateMLComponents/BoostedTreeRegressor/configuration)

Boosted tree configuration.

[`var featureColumnNames: [String]`](/documentation/CreateMLComponents/BoostedTreeRegressor/featureColumnNames)

The names of the columns containing feature values.

### Fitting a regressor model

[`func fitted(to: DataFrame, validateOn: DataFrame?, eventHandler: EventHandler?) async throws -> TreeRegressorModel`](/documentation/CreateMLComponents/BoostedTreeRegressor/fitted(to:validateOn:eventHandler:))

Fits a boosted tree regressor model to a collection of examples.

[`typealias Transformer`](/documentation/CreateMLComponents/BoostedTreeRegressor/Transformer)

The transformer type created by this estimator.

### Encoding and decoding a regressor

[`func encodeWithOptimizer(TreeRegressorModel, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/BoostedTreeRegressor/encodeWithOptimizer(_:to:))

Encodes the transformer and optimizer to an encoder.

[`func decodeWithOptimizer(from: inout any EstimatorDecoder) throws -> TreeRegressorModel`](/documentation/CreateMLComponents/BoostedTreeRegressor/decodeWithOptimizer(from:))

Reads the encoded transformer and optimizer with a decoder.

### Default Implementations

[UpdatableSupervisedTabularEstimator Implementations](/documentation/CreateMLComponents/BoostedTreeRegressor/UpdatableSupervisedTabularEstimator-Implementations)

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`UpdatableSupervisedTabularEstimator`](/documentation/CreateMLComponents/UpdatableSupervisedTabularEstimator)

[`Escapable`](/documentation/Swift/Escapable)

[`SupervisedTabularEstimator`](/documentation/CreateMLComponents/SupervisedTabularEstimator)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)