<!--
{
  "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 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/LinearTimeSeriesForecaster/Model/applied(toWindow:eventHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents26LinearTimeSeriesForecasterV5ModelV7applied8toWindow12eventHandler6CoreML13MLShapedArrayVyxGAL_yAA5EventVYbcSgtYaKF"
  },
  "title" : "applied(toWindow:eventHandler:)"
}
-->

# applied(toWindow:eventHandler:)

Performs a prediction on a window of input features.

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

## Parameters

`input`

An window of input features with shape `[inputWindowSize, featureSize]`.

`eventHandler`

An event handler.

## Return Value

A shaped array of predictions with shape `[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)