<!--
{
  "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/init(labels:configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents20TimeSeriesClassifierV6labels13configurationACyxq_GShyq_G_AA0cdE13ConfigurationVtcfc"
  },
  "title" : "init(labels:configuration:)"
}
-->

# init(labels:configuration:)

Creates a time series classifier.

```
init(labels: Set<Label>, configuration: TimeSeriesClassifierConfiguration = .init())
```

## Parameters

`labels`

The labels used to train the classifier.

`configuration`

The configuration.

---

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)