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

# UpdatableSupervisedEstimatorToTemporalAdaptor

An updatable supervised temporal estimator wrapping an updatable supervised estimator.

```
struct UpdatableSupervisedEstimatorToTemporalAdaptor<Base> where Base : UpdatableSupervisedEstimator, Base.Annotation : Sendable
```

## Topics

### Creating an adaptor

[`init(Base)`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/init(_:))

Creates a temporal supervised estimator from a supervised estimator.

### Encoding and decoding

[`func encode(UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/encode(_:to:))

Encodes a fitted transformer.

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

Decodes the transformer.

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

Encodes the transformer and optimizer to an encoder.

[`func decodeWithOptimizer(from: inout any EstimatorDecoder) throws -> UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/decodeWithOptimizer(from:))

Reads the encoded transformer and optimizer with a decoder.

### Fitting and updating

[`func fitted<InputSequence, FeatureSequence>(to: InputSequence, eventHandler: EventHandler?) async throws -> UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/fitted(to:eventHandler:))

Fits a transformer to a sequence of examples.

[`func fitted<InputSequence, Validation, FeatureSequence>(to: InputSequence, validateOn: Validation, eventHandler: EventHandler?) async throws -> UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/fitted(to:validateOn:eventHandler:))

Fits a transformer to a sequence of examples while validating with a validation sequence.

[`func makeTransformer() -> UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/makeTransformer())

Creates a default-initialized transformer suitable for incremental fitting.

[`func update<InputSequence, FeatureSequence>(inout UpdatableSupervisedEstimatorToTemporalAdaptor<Base>.Transformer, with: InputSequence, eventHandler: EventHandler?) async throws`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/update(_:with:eventHandler:))

Updates a transformer with a new sequence of examples.

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

The annotation type.

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

The input type.

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

The output type.

[`typealias Transformer`](/documentation/CreateMLComponents/UpdatableSupervisedEstimatorToTemporalAdaptor/Transformer)

The transformer type created by this estimator.

## Relationships

### Conforms To

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

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

[`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)