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

# SupervisedEstimatorToTemporalAdaptor

A supervised temporal estimator wrapping a supervised estimator.

```
struct SupervisedEstimatorToTemporalAdaptor<Base> where Base : SupervisedEstimator, Base.Annotation : Sendable
```

## Topics

### Creating an estimator

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

Creates a temporal supervised estimator from a supervised estimator.

### Encoding and decoding

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

Encodes a fitted transformer.

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

Decodes the transformer.

### Fitting

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

Fits a transformer to a sequence of examples.

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

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

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

The annotation type.

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

The input type.

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

The output type.

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

The transformer type created by this estimator.

## Relationships

### Conforms To

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

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

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