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

# preprocessed(from:eventHandler:)

Preprocesses a sequence of examples.

## Declaration

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

## 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/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)
- [update(_:withPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedestimator/update(_:withpreprocessed: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)
