<!--
{
  "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/TabularTransformerToEstimatorAdaptor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents36TabularTransformerToEstimatorAdaptorV"
  },
  "title" : "TabularTransformerToEstimatorAdaptor"
}
-->

# TabularTransformerToEstimatorAdaptor

A tabular estimator that always returns a predefined tabular transformer.

```
struct TabularTransformerToEstimatorAdaptor<Transformer> where Transformer : TabularTransformer
```

## Topics

### Creating an estimator

[`init(Transformer)`](/documentation/CreateMLComponents/TabularTransformerToEstimatorAdaptor/init(_:))

Creates a trivial tabular estimator.

### Getting the transformer

[`let transformer: Transformer`](/documentation/CreateMLComponents/TabularTransformerToEstimatorAdaptor/transformer)

A pre-defined tabular transformer.

### Encoding and decoding

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

Does nothing since this tabular estimator uses a pre-defined tabular transformer.

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

Returns the pre-defined tabular transformer.

### Fitting

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

Returns the pre-defined tabular transformer.

## Relationships

### Conforms To

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

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

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

---

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)