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

# applied(to:eventHandler:)

Performs a prediction from a single input.

## Declaration

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

## Parameters

- `input`: The input feature.
- `eventHandler`: An event handler.

## Return Value

Return Value A regression result.
