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

# fitted(to:eventHandler:)

Fits a transformer to a sequence of examples.

## Declaration

```swift
func fitted<InputSequence>(to input: InputSequence, eventHandler: EventHandler? = nil) async throws -> EstimatorToTemporalAdaptor<Base>.Transformer where InputSequence : Sequence, InputSequence.Element : TemporalSequence, Base.Transformer.Input == InputSequence.Element.Feature
```

## Parameters

- `input`: A sequence of examples.
- `eventHandler`: An event handler.

## Return Value

Return Value The fitted transformer.

## See Also

### Fitting a transformer

- [EstimatorToTemporalAdaptor.Input](createmlcomponents/estimatortotemporaladaptor/input.md)
- [EstimatorToTemporalAdaptor.Output](createmlcomponents/estimatortotemporaladaptor/output.md)
- [EstimatorToTemporalAdaptor.Transformer](createmlcomponents/estimatortotemporaladaptor/transformer.md)
