---
title: maximumDepth
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/boostedtreeconfiguration/maximumdepth
---

# maximumDepth

Maximum tree depth.

## Declaration

```swift
var maximumDepth: Int
```

## Discussion

Discussion For best results use a value between 4 and 8. Must be at least 1. Defaults to 6.

## See Also

### Inspecting the configuration

- [columnSubsample](createmlcomponents/boostedtreeconfiguration/columnsubsample.md)
- [earlyStoppingIterationCount](createmlcomponents/boostedtreeconfiguration/earlystoppingiterationcount.md)
- [learningRate](createmlcomponents/boostedtreeconfiguration/learningrate.md)
- [maximumIterations](createmlcomponents/boostedtreeconfiguration/maximumiterations.md)
- [minimumChildWeight](createmlcomponents/boostedtreeconfiguration/minimumchildweight.md)
- [minimumLossReduction](createmlcomponents/boostedtreeconfiguration/minimumlossreduction.md)
- [parallelTreeCount](createmlcomponents/boostedtreeconfiguration/paralleltreecount.md)
- [randomSeed](createmlcomponents/boostedtreeconfiguration/randomseed.md)
- [rowSubsample](createmlcomponents/boostedtreeconfiguration/rowsubsample.md)
- [stepSize](createmlcomponents/boostedtreeconfiguration/stepsize.md)
