<!--
{
  "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/TimeSeriesClassifier/Model",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents20TimeSeriesClassifierV5ModelV"
  },
  "title" : "TimeSeriesClassifier.Model"
}
-->

# TimeSeriesClassifier.Model

A time-series classifier model.

```
struct Model
```

## Overview> Note: Only `Float` and `Double` are currently supported as the Scalar type.

## Topics

### Getting the stride

[`var stride: Int`](/documentation/CreateMLComponents/TimeSeriesClassifier/Model/stride)

The number of samples between temporal predictions.

### Applying and exporting

[`func applied(to:eventHandler:)`](/documentation/CreateMLComponents/TimeSeriesClassifier/Model/applied(to:eventHandler:))

Performs a classification on a shaped array of input features.

[`func export(to: URL) throws`](/documentation/CreateMLComponents/TimeSeriesClassifier/Model/export(to:))

Exports this transformer as a CoreML model package.

[`func export(to: URL, metadata: ModelMetadata) throws`](/documentation/CreateMLComponents/TimeSeriesClassifier/Model/export(to:metadata:))

Exports this transformer as a CoreML model package with user-supplied metadata.

### Default Implementations

[TemporalTransformer Implementations](/documentation/CreateMLComponents/TimeSeriesClassifier/Model/TemporalTransformer-Implementations)

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Sendable`](/documentation/Swift/Sendable)

[`Transformer`](/documentation/CreateMLComponents/Transformer)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`TemporalTransformer`](/documentation/CreateMLComponents/TemporalTransformer)

---

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)