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

# update(_:withPreprocessed:eventHandler:)

Updates a transformer with a new sequence of preprocessed features.

## Declaration

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

## 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/preprocessingupdatableestimator/preprocessed(from:eventhandler:).md)
- [fitted(to:eventHandler:)](createmlcomponents/preprocessingupdatableestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatableestimator/fitted(topreprocessed:eventhandler:).md)
- [makeTransformer()](createmlcomponents/preprocessingupdatableestimator/maketransformer().md)
- [update(_:with:eventHandler:)](createmlcomponents/preprocessingupdatableestimator/update(_:with:eventhandler:).md)
- [PreprocessingUpdatableEstimator.Input](createmlcomponents/preprocessingupdatableestimator/input.md)
- [PreprocessingUpdatableEstimator.Intermediate](createmlcomponents/preprocessingupdatableestimator/intermediate.md)
- [PreprocessingUpdatableEstimator.Output](createmlcomponents/preprocessingupdatableestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
