---
title: "update(_:with:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/updatableestimatortotemporaladaptor/update(_:with:eventhandler:)"
---

# update(_:with:eventHandler:)

Updates a transformer with a new sequence of examples.

## Declaration

```swift
func update<InputSequence>(_ transformer: inout UpdatableEstimatorToTemporalAdaptor<Base>.Transformer, with input: InputSequence, eventHandler: EventHandler? = nil) async throws where InputSequence : Sequence, InputSequence.Element : TemporalSequence, Base.Transformer.Input == InputSequence.Element.Feature
```

## Parameters

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

## See Also

### Fitting and updating

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