<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/TimeSeriesClassifierConfiguration/minimumSequenceLength",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents33TimeSeriesClassifierConfigurationV21minimumSequenceLengthSivp"
  },
  "title" : "minimumSequenceLength"
}
-->

# minimumSequenceLength

The minimum number of samples required to produce a classification.

```
var minimumSequenceLength: Int
```

## Discussion

This configuration parameter controls the size of the model. Set it to the largest value that is reasonable for
your task. For example if your input is accelerometer data sampled at 100Hz and you want to recognize actions,
the minimum action duration may be one second, so the minimum sequence length is `100Hz * 1s = 100`. Defaults
to 100.

---

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)