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

# UpdatableEstimatorToTemporalAdaptor

An updatable temporal estimator wrapping an updatable estimator.

```
struct UpdatableEstimatorToTemporalAdaptor<Base> where Base : UpdatableEstimator
```

## Topics

### Creating an adaptor

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

Creates a temporal estimator from an estimator.

### Encoding and decoding

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

Encodes a fitted transformer.

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

Decodes the transformer.

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

Encodes the transformer and optimizer to an encoder.

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

Reads the encoded transformer and optimizer with a decoder.

### Fitting and updating

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

Fits a transformer to a sequence of examples.

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

Creates a default-initialized transformer suitable for incremental fitting.

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

Updates a transformer with a new sequence of examples.

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

The input type.

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

The output type.

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

The transformer type created by this estimator.

## Relationships

### Conforms To

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

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

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