---
title: maximumIterations
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/logisticregressionclassifier/configuration-swift.struct/maximumiterations
---

# maximumIterations

The maximum number of allowed passes through the data.

## Declaration

```swift
var maximumIterations: 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

### Getting the properties

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