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

# EstimatorToTemporalAdaptor

A temporal estimator wrapping an estimator.

```
struct EstimatorToTemporalAdaptor<Base> where Base : Estimator
```

## Topics

### Creating the estimator

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

Creates a temporal estimator from an estimator.

### Encoding and decoding

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

Encodes a fitted transformer.

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

Decodes the transformer.

### Fitting a transformer

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

Fits a transformer to a sequence of examples.

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

The input type.

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

The output type.

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

The transformer type created by this estimator.

## Relationships

### Conforms To

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

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

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