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

# update(_:with:eventHandler:)

Updates a transformer with a new sequence of examples.

## Declaration

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

## Parameters

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

## See Also

### Preprocesing and fitting

- [preprocessed(from:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/preprocessed(from:eventhandler:).md)
- [fitted(to:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(topreprocessed:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(to:validateon:eventhandler:).md)
- [fitted(toPreprocessed:validateOn:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(topreprocessed:validateon:eventhandler:).md)
- [makeTransformer()](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/maketransformer().md)
- [update(_:withPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/update(_:withpreprocessed:eventhandler:).md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Annotation](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/annotation.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Input](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/input.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Intermediate](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/intermediate.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Output](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
