<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/FullyConnectedNetworkConfiguration/earlyStopIterationCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents34FullyConnectedNetworkConfigurationV23earlyStopIterationCountSivp"
  },
  "title" : "earlyStopIterationCount"
}
-->

# earlyStopIterationCount

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

```
var earlyStopIterationCount: Int
```

## Discussion

The `fitted` method will stop if no significant progress is made for this many iterations. Significant
progress happens when the validation loss decreases by at least `earlyStoppingTolerance`.

Defaults to 10.

> Note: Early stopping only happens when using the `fitted` method with validation data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)