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

# applied(to:eventHandler:)

Performs a prediction on a shaped array.

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

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

---

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)