<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLRecommender/ModelParameters-swift.struct/maxSimilarityIterations",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML13MLRecommenderV15ModelParametersV23maxSimilarityIterationsSivp"
  },
  "title" : "maxSimilarityIterations"
}
-->

# maxSimilarityIterations

The largest number of iterations the recommender uses to build its
lookup table.

```
var maxSimilarityIterations: Int
```

## Discussion

This value limits the number of iterations the recommender can use
to construct a lookup table. The default value is `1024`.

---

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)