---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/multivariatelinearregressor/model/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

Performs a prediction on a shaped array.

## Declaration

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

## Parameters

- `input`: A shaped array of features. The last dimension must be inputSize.
- `eventHandler`: An event handler.

## Return Value

Return Value A shaped array of predictions. The shape of the predictions matches the shape of the input except for the last dimension, which is outputSize.
