---
title: PreprocessingSupervisedEstimator
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/preprocessingsupervisedestimator
---

# PreprocessingSupervisedEstimator

A supervised estimator that composes a preprocessing transformer and a supervised estimator.

## Declaration

```swift
struct PreprocessingSupervisedEstimator<Preprocessor, Estimator> where Preprocessor : Transformer, Estimator : SupervisedEstimator, Preprocessor.Output == Estimator.Transformer.Input
```

## Topics

### Creating the estimator

- [init(_:_:)](createmlcomponents/preprocessingsupervisedestimator/init(_:_:).md)

### Getting the properties

- [estimator](createmlcomponents/preprocessingsupervisedestimator/estimator.md)
- [preprocessor](createmlcomponents/preprocessingsupervisedestimator/preprocessor.md)

### Preprocessing and fitting

- [preprocessed(from:eventHandler:)](createmlcomponents/preprocessingsupervisedestimator/preprocessed(from:eventhandler:).md)
- [fitted(to:eventHandler:)](createmlcomponents/preprocessingsupervisedestimator/fitted(to:eventhandler:).md)
- [fitted(toPreprocessed:eventHandler:)](createmlcomponents/preprocessingsupervisedestimator/fitted(topreprocessed:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/preprocessingsupervisedestimator/fitted(to:validateon:eventhandler:).md)
- [fitted(toPreprocessed:validateOn:eventHandler:)](createmlcomponents/preprocessingsupervisedestimator/fitted(topreprocessed:validateon:eventhandler:).md)
- [PreprocessingSupervisedEstimator.Annotation](createmlcomponents/preprocessingsupervisedestimator/annotation.md)
- [PreprocessingSupervisedEstimator.Input](createmlcomponents/preprocessingsupervisedestimator/input.md)
- [PreprocessingSupervisedEstimator.Intermediate](createmlcomponents/preprocessingsupervisedestimator/intermediate.md)
- [PreprocessingSupervisedEstimator.Output](createmlcomponents/preprocessingsupervisedestimator/output.md)
- [Transformer](createmlcomponents/transformer.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SupervisedEstimator](createmlcomponents/supervisedestimator.md)

## See Also

### Composition with preprocessing

- [PreprocessingEstimator](createmlcomponents/preprocessingestimator.md)
- [PreprocessingTemporalEstimator](createmlcomponents/preprocessingtemporalestimator.md)
- [PreprocessingSupervisedTemporalEstimator](createmlcomponents/preprocessingsupervisedtemporalestimator.md)
- [PreprocessingUpdatableEstimator](createmlcomponents/preprocessingupdatableestimator.md)
- [PreprocessingUpdatableTemporalEstimator](createmlcomponents/preprocessingupdatabletemporalestimator.md)
- [PreprocessingUpdatableSupervisedEstimator](createmlcomponents/preprocessingupdatablesupervisedestimator.md)
- [PreprocessingUpdatableSupervisedTemporalEstimator](createmlcomponents/preprocessingupdatablesupervisedtemporalestimator.md)
