---
title: "applied(toWindow:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/lineartimeseriesforecaster/model/applied(towindow:eventhandler:)"
---

# applied(toWindow:eventHandler:)

Performs a prediction on a window of input features.

## Declaration

```swift
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

Return Value A shaped array of predictions with shape [forecastWindowSize, annotationSize].

## See Also

### Applying the model

- [applied(to:eventHandler:)](createmlcomponents/lineartimeseriesforecaster/model/applied(to:eventhandler:).md)
