<!--
{
  "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/LinearTimeSeriesForecaster/Model/applied(to:eventHandler:)-3h2wx",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents26LinearTimeSeriesForecasterV5ModelV7applied2to12eventHandlerAA19AnyTemporalSequenceVy6CoreML13MLShapedArrayVyxGGqd___yAA5EventVYbcSgtYaKAA0mN0Rd__AN7FeatureRtd__lF"
  },
  "title" : "applied(to:eventHandler:)"
}
-->

# applied(to:eventHandler:)

Performs the transformation on an input sequence.

```
func applied(to input: some TemporalSequence<MLShapedArray<Scalar>>, eventHandler: EventHandler? = nil) async throws -> AnyTemporalSequence<MLShapedArray<Scalar>>
```

## Parameters

`input`

A temporal sequence of features. Each feature’s shape must be `[featureSize]`.

`eventHandler`

An event handler.

## Return Value

An temporal sequence of predictions. Each prediction’s shape is
`[forecastWindowSize, annotationSize]`.

---

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)