---
title: EstimatorToSupervisedAdaptor
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/estimatortosupervisedadaptor
---

# EstimatorToSupervisedAdaptor

An adaptor that exposes an estimator as a supervised estimator.

## Declaration

```swift
struct EstimatorToSupervisedAdaptor<Estimator, Annotation> where Estimator : Estimator, Annotation : Equatable
```

## Topics

### Creating the adaptor

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

### Getting the properties

- [estimator](createmlcomponents/estimatortosupervisedadaptor/estimator.md)

### Encoding and decoding

- [encode(_:to:)](createmlcomponents/estimatortosupervisedadaptor/encode(_:to:).md)
- [decode(from:)](createmlcomponents/estimatortosupervisedadaptor/decode(from:).md)

### Fitting a transformer

- [fitted(to:eventHandler:)](createmlcomponents/estimatortosupervisedadaptor/fitted(to:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/estimatortosupervisedadaptor/fitted(to:validateon:eventhandler:).md)
- [Transformer](createmlcomponents/transformer.md)

## Relationships

### Conforms To

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

## See Also

### Estimator adaptors

- [EstimatorToTemporalAdaptor](createmlcomponents/estimatortotemporaladaptor.md)
- [SupervisedEstimatorToTemporalAdaptor](createmlcomponents/supervisedestimatortotemporaladaptor.md)
