<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/kLSMMapDiscardCounts",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Latent Semantic Mapping"
    ],
    "preciseIdentifier" : "c:@Ea@kLSMMapDiscardCounts@kLSMMapDiscardCounts"
  },
  "title" : "kLSMMapDiscardCounts"
}
-->

# kLSMMapDiscardCounts

An option that specifies not to keep counts.

```
var kLSMMapDiscardCounts: Int { get }
```

## Discussion

If you specify this option when loading the map, you must reload the map without this option before calling [`LSMMapStartTraining(_:)`](/documentation/LatentSemanticMapping/LSMMapStartTraining(_:)).

If you specify this option when storing the map, the stored map can’t be retrained at all. This option can save a lot of memory or disk space.

---

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)