---
title: earlyStoppingIterationCount
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/boostedtreeconfiguration/earlystoppingiterationcount
---

# earlyStoppingIterationCount

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

## Declaration

```swift
var earlyStoppingIterationCount: Int?
```

## Discussion

Discussion Validation data must be specified for an early stop.

## See Also

### Inspecting the configuration

- [columnSubsample](createmlcomponents/boostedtreeconfiguration/columnsubsample.md)
- [learningRate](createmlcomponents/boostedtreeconfiguration/learningrate.md)
- [maximumDepth](createmlcomponents/boostedtreeconfiguration/maximumdepth.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)
