---
title: "fitted(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/updatableestimatortotemporaladaptor/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 -> UpdatableEstimatorToTemporalAdaptor<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 and updating

- [makeTransformer()](createmlcomponents/updatableestimatortotemporaladaptor/maketransformer().md)
- [update(_:with:eventHandler:)](createmlcomponents/updatableestimatortotemporaladaptor/update(_:with:eventhandler:).md)
- [UpdatableEstimatorToTemporalAdaptor.Input](createmlcomponents/updatableestimatortotemporaladaptor/input.md)
- [UpdatableEstimatorToTemporalAdaptor.Output](createmlcomponents/updatableestimatortotemporaladaptor/output.md)
- [UpdatableEstimatorToTemporalAdaptor.Transformer](createmlcomponents/updatableestimatortotemporaladaptor/transformer.md)
