<!--
{
  "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/TreeRegressorModel",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents18TreeRegressorModelV"
  },
  "title" : "TreeRegressorModel"
}
-->

# TreeRegressorModel

A trained tree regressor model.

```
struct TreeRegressorModel
```

## Topics

### Getting the column names

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

The names of the columns containing feature values.

[`var predictionColumnName: String`](/documentation/CreateMLComponents/TreeRegressorModel/predictionColumnName)

The name of the column containing the predicted values.

### Applying

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

Performs a regression on a data frame.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)