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

# update(_:with:eventHandler:)

Updates a transformer with a new sequence of examples.

## Declaration

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

## Parameters

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

## See Also

### Preprocesing and fitting

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