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

# applied(to:eventHandler:)

Performs a classification on a data frame.

## Declaration

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

## Parameters

- `input`: The input data frame.
- `eventHandler`: An event handler.

## Return Value

Return Value A data frame of classifications.
