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

# update(_:with:eventHandler:)

Updates a transformer with a new sequence of examples.

## Declaration

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

## Parameters

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

## See Also

### Transforming

- [makeTransformer()](createmlcomponents/updatablesupervisedtemporalestimator/maketransformer().md)
- [update(_:with:)](createmlcomponents/updatablesupervisedtemporalestimator/update(_:with:).md)
