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

# update(_:withPreprocessed:eventHandler:)

Updates a transformer with a new sequence of preprocessed features.

## Declaration

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

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