---
title: "preprocessed(from:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/preprocessingupdatableestimator/preprocessed(from:eventhandler:)"
---

# preprocessed(from:eventHandler:)

Preprocesses a sequence of examples.

## Declaration

```swift
func preprocessed<S>(from input: S, eventHandler: EventHandler? = nil) async throws -> [Preprocessor.Output] where S : Sequence, Preprocessor.Input == S.Element
```

## Parameters

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

## Return Value

Return Value The preprocessed examples.

## See Also

### Preprocesing and fitting

- [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)
- [update(_:withPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatableestimator/update(_:withpreprocessed:eventhandler:).md)
- [PreprocessingUpdatableEstimator.Input](createmlcomponents/preprocessingupdatableestimator/input.md)
- [PreprocessingUpdatableEstimator.Intermediate](createmlcomponents/preprocessingupdatableestimator/intermediate.md)
- [PreprocessingUpdatableEstimator.Output](createmlcomponents/preprocessingupdatableestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
