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

# update(_:withPreprocessed:eventHandler:)

Updates a transformer with a new data frame of preprocessed features.

## Declaration

```swift
func update(_ transformer: inout PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer, withPreprocessed preprocessed: DataFrame, eventHandler: EventHandler? = nil) async throws
```

## Parameters

- `transformer`: A transformer to update.
- `preprocessed`: A data frame of preprocessed features.
- `eventHandler`: An event handler.

## See Also

### Preprocesing and fitting

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