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

# PreprocessingSupervisedTabularEstimator

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

```
struct PreprocessingSupervisedTabularEstimator<Preprocessor, Estimator> where Preprocessor : TabularTransformer, Estimator : SupervisedTabularEstimator
```

## Topics

### Creating an estimator

[`init(Preprocessor, Estimator)`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/init(_:_:))

Creates a composed supervised tabular estimator from a preprocessing transformer and a supervised tabular estimator.

### Getting the properties

[`var annotationColumnID: ColumnID<Estimator.Annotation>`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/annotationColumnID)

The annotation column identifier.

[`var estimator: Estimator`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/estimator)

The estimator.

[`var preprocessor: Preprocessor`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/preprocessor)

The preprocessing transformer.

### Preprocesing and fitting

[`func preprocessed(from: DataFrame, eventHandler: EventHandler?) async throws -> DataFrame`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/preprocessed(from:eventHandler:))

Preprocesses a data frame of examples.

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

Fits a transformer to a data frame

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

Fits a transformer to a data frame of preprocessed examples while validating.

[`typealias Annotation`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/Annotation)

The annotation type.

[`typealias Input`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/Input)

The input type.

[`typealias Intermediate`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/Intermediate)

The intermediate type.

[`typealias Output`](/documentation/CreateMLComponents/PreprocessingSupervisedTabularEstimator/Output)

The output type.

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

A transformer that takes an input and produces an output.

## Relationships

### Conforms To

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

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

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

---

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)