---
title: earlyStopIterationCount
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/linearregressor/configuration-swift.struct/earlystopiterationcount
---

# earlyStopIterationCount

The number of iterations to use when evaluating whether to stop early.

## Declaration

```swift
var earlyStopIterationCount: Int
```

## Discussion

Discussion The fitted method will stop if no significant progress is made for this many iterations. Significant progress happens when the validation error decreases by at least convergenceThreshold. note: Early stopping only happens when using the fitted method with validation data.

## See Also

### Getting the properties

- [convergenceThreshold](createmlcomponents/linearregressor/configuration-swift.struct/convergencethreshold.md)
- [l1Penalty](createmlcomponents/linearregressor/configuration-swift.struct/l1penalty.md)
- [l2Penalty](createmlcomponents/linearregressor/configuration-swift.struct/l2penalty.md)
- [maximumIterations](createmlcomponents/linearregressor/configuration-swift.struct/maximumiterations.md)
- [optimizationStrategy](createmlcomponents/linearregressor/configuration-swift.struct/optimizationstrategy.md)
- [scaleFeatures](createmlcomponents/linearregressor/configuration-swift.struct/scalefeatures.md)
- [stepSize](createmlcomponents/linearregressor/configuration-swift.struct/stepsize.md)
