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

# preprocessed(from:eventHandler:)

Preprocesses a sequence of examples.

## Declaration

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

## 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/preprocessingtemporalestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingtemporalestimator/fitted(topreprocessed:eventhandler:).md)
- [PreprocessingTemporalEstimator.Input](createmlcomponents/preprocessingtemporalestimator/input.md)
- [PreprocessingTemporalEstimator.Intermediate](createmlcomponents/preprocessingtemporalestimator/intermediate.md)
- [PreprocessingTemporalEstimator.Output](createmlcomponents/preprocessingtemporalestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)
