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

# update(_:with:eventHandler:)

Updates a transformer with a new sequence of examples.

## Declaration

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

## Parameters

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

## See Also

### Fitting and updating

- [fitted(to:eventHandler:)](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/fitted(to:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/fitted(to:validateon:eventhandler:).md)
- [makeTransformer()](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/maketransformer().md)
- [UpdatableSupervisedEstimatorToTemporalAdaptor.Annotation](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/annotation.md)
- [UpdatableSupervisedEstimatorToTemporalAdaptor.Input](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/input.md)
- [UpdatableSupervisedEstimatorToTemporalAdaptor.Output](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/output.md)
- [UpdatableSupervisedEstimatorToTemporalAdaptor.Transformer](createmlcomponents/updatablesupervisedestimatortotemporaladaptor/transformer.md)
