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

# maxCount

The largest number of similar items the model stores for each item.

```
var maxCount: Int
```

## Discussion

The memory Create ML requires to train this model is proportional to
this number. A lower value reduces its demand for memory but
decreases the recommender’s accuracy. The default value is `64`.

---

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)