---
title: maximumIterationCount
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/lineartimeseriesforecasterconfiguration/maximumiterationcount
---

# maximumIterationCount

The maximum number of allowed passes through the data.

## Declaration

```swift
var maximumIterationCount: Int
```

## Discussion

Discussion More passes over the data can result in a more accurately trained model. Consider increasing this if the training accuracy is low. Defaults to 25. note: This parameter is only used by the fitted method. When using the update method it’s up to you to decide when to stop.

## See Also

### Inspecting a linear time series forecasater configuration

- [batchSize](createmlcomponents/lineartimeseriesforecasterconfiguration/batchsize.md)
- [earlyStoppingIterationCount](createmlcomponents/lineartimeseriesforecasterconfiguration/earlystoppingiterationcount.md)
- [earlyStoppingTolerance](createmlcomponents/lineartimeseriesforecasterconfiguration/earlystoppingtolerance.md)
- [forecastWindowSize](createmlcomponents/lineartimeseriesforecasterconfiguration/forecastwindowsize.md)
- [inputWindowSize](createmlcomponents/lineartimeseriesforecasterconfiguration/inputwindowsize.md)
- [learningRate](createmlcomponents/lineartimeseriesforecasterconfiguration/learningrate.md)
- [randomSeed](createmlcomponents/lineartimeseriesforecasterconfiguration/randomseed.md)
