<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents35TabularEstimatorToSupervisedAdaptorV"
  },
  "title" : "TabularEstimatorToSupervisedAdaptor"
}
-->

# TabularEstimatorToSupervisedAdaptor

An adaptor that exposes a tabular estimator as a tabular supervised estimator.

```
struct TabularEstimatorToSupervisedAdaptor<Estimator, Annotation> where Estimator : TabularEstimator
```

## Topics

### Creating an adaptor

[`init(Estimator, annotationColumnID: ColumnID<Annotation>)`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/init(_:annotationColumnID:))

Creates a tabular estimator supervised adaptor.

### Getting the properties

[`var annotationColumnID: ColumnID<Annotation>`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/annotationColumnID)

The annotation column identifier.

[`let estimator: Estimator`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/estimator)

The wrapped estimator.

### Encoding and decoding

[`func encode(Estimator.Transformer, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/encode(_:to:))

Encodes a fitted transformer.

[`func decode(from: inout any EstimatorDecoder) throws -> Estimator.Transformer`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/decode(from:))

Decodes a previously fitted transformer.

### Fitting

[`func fitted(to: DataFrame, validateOn: DataFrame?, eventHandler: EventHandler?) async throws -> Estimator.Transformer`](/documentation/CreateMLComponents/TabularEstimatorToSupervisedAdaptor/fitted(to:validateOn:eventHandler:))

Returns the tabular transformer fitted using the provided tabular estimator.

[`protocol Transformer`](/documentation/CreateMLComponents/Transformer)

A transformer that takes an input and produces an output.

## Relationships

### Conforms To

[`SupervisedTabularEstimator`](/documentation/CreateMLComponents/SupervisedTabularEstimator)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)