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

# applied(to:eventHandler:)

Performs a regression on a single input.

## Declaration

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

## Parameters

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

## Return Value

Return Value A regression.
