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

# PreprocessingUpdatableSupervisedTabularEstimator

An updatable supervised estimator that composes a preprocessing transformer and an updatable supervised estimator.

```
struct PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator> where Preprocessor : TabularTransformer, Estimator : UpdatableSupervisedTabularEstimator
```

## Topics

### Creating an estimator

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

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

### Getting the properties

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

The annotation column identifier.

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

The estimator.

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

The preprocessing transformer.

### Encoding and decoding

[`func encodeWithOptimizer(PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTabularEstimator/encodeWithOptimizer(_:to:))

Encodes the transformer and optimizer to an encoder.

[`func decodeWithOptimizer(from: inout any EstimatorDecoder) throws -> PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer`](/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTabularEstimator/decodeWithOptimizer(from:))

Reads the encoded transformer and optimizer with a decoder.

### Preprocesing and fitting

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

Fits a composed transformer to a data frame of examples.

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

Fits a composed transformer to a data frame of examples.

[`func makeTransformer() -> PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer`](/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTabularEstimator/makeTransformer())

Creates a default-initialized transformer suitable for incremental fitting.

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

Preprocesses a data frame.

[`func update(inout PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer, with: DataFrame, eventHandler: EventHandler?) async throws`](/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTabularEstimator/update(_:with:eventHandler:))

Updates a transformer with a new data frame of examples.

[`func update(inout PreprocessingUpdatableSupervisedTabularEstimator<Preprocessor, Estimator>.Transformer, withPreprocessed: DataFrame, eventHandler: EventHandler?) async throws`](/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTabularEstimator/update(_:withPreprocessed:eventHandler:))

Updates a transformer with a new data frame of preprocessed features.

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

The annotation type.

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

The input type.

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

The intermediate type.

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

The output type.

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

A transformer that takes an input and produces an output.

## Relationships

### Conforms To

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

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

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

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

---

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)