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

# BoostedTreeConfiguration

A boosted tree configuration.

```
struct BoostedTreeConfiguration
```

## Topics

### Creating a configuration

[`init()`](/documentation/CreateMLComponents/BoostedTreeConfiguration/init())

Creates a default boosted tree configuration.

### Inspecting the configuration

[`var columnSubsample: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/columnSubsample)

Subsample ratio of the columns in each iteration of tree construction.

[`var earlyStoppingIterationCount: Int?`](/documentation/CreateMLComponents/BoostedTreeConfiguration/earlyStoppingIterationCount)

Stops training after this number of iterations where the validation metric does not improve.

[`var learningRate: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/learningRate)

The learning rate.

[`var maximumDepth: Int`](/documentation/CreateMLComponents/BoostedTreeConfiguration/maximumDepth)

Maximum tree depth.

[`var maximumIterations: Int`](/documentation/CreateMLComponents/BoostedTreeConfiguration/maximumIterations)

Maximum number of iterations.

[`var minimumChildWeight: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/minimumChildWeight)

The minimum weight of each leaf node.

[`var minimumLossReduction: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/minimumLossReduction)

Minimum loss reduction required to further split a node during the tree learning phase.

[`var parallelTreeCount: Int`](/documentation/CreateMLComponents/BoostedTreeConfiguration/parallelTreeCount)

The number of parallel trees constructed during each iteration.

[`var randomSeed: Int`](/documentation/CreateMLComponents/BoostedTreeConfiguration/randomSeed)

A seed to generate reproducible results from random operations such as column and row subsampling.

[`var rowSubsample: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/rowSubsample)

Subsample ratio of the training set in each iteration of tree construction.

[`var stepSize: Double`](/documentation/CreateMLComponents/BoostedTreeConfiguration/stepSize)

The step size shrinking.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)