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

# update(_:withPreprocessed:eventHandler:)

Updates a transformer with a new sequence of preprocessed features.

## Declaration

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

## Parameters

- `transformer`: A transformer to update.
- `preprocessed`: A sequence of preprocessed features.
- `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(_:with:eventHandler:)](createmlcomponents/preprocessingupdatabletemporalestimator/update(_:with: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)
