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

# applied(to:eventHandler:)

Performs a classification on a shaped array of input features.

## Declaration

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

## Parameters

- `input`: A shaped array of input features. The shape must [sequenceLength, featureSize].
- `eventHandler`: An event handler.

## Return Value

Return Value A classification distribution.

## See Also

### Applying and exporting

- [export(to:)](createmlcomponents/timeseriesclassifier/model/export(to:).md)
- [export(to:metadata:)](createmlcomponents/timeseriesclassifier/model/export(to:metadata:).md)
