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

# preprocessed(from:eventHandler:)

Preprocesses a sequence of examples.

## Declaration

```swift
func preprocessed<InputSequence, FeatureSequence>(from input: InputSequence, eventHandler: EventHandler? = nil) async throws -> [AnnotatedFeature<PreprocessedFeatureSequence<Preprocessor.Output>, PreprocessingUpdatableSupervisedTemporalEstimator<Preprocessor, Estimator>.Annotation>] where InputSequence : Sequence, FeatureSequence : TemporalSequence, Preprocessor.Input == FeatureSequence.Feature, InputSequence.Element == AnnotatedFeature<FeatureSequence, 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/preprocessingupdatablesupervisedtemporalestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(topreprocessed:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(to:validateon:eventhandler:).md)
- [fitted(toPreprocessed:validateOn:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/fitted(topreprocessed:validateon:eventhandler:).md)
- [makeTransformer()](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/maketransformer().md)
- [update(_:with:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/update(_:with:eventhandler:).md)
- [update(_:withPreprocessed:eventHandler:)](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/update(_:withpreprocessed:eventhandler:).md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Annotation](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/annotation.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Input](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/input.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Intermediate](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/intermediate.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator.Output](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
