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

# TemporalEstimatorToSupervisedAdaptor

An adaptor that exposes a temporal estimator as a supervised temporal estimator.

```
struct TemporalEstimatorToSupervisedAdaptor<Estimator, Annotation> where Estimator : TemporalEstimator, Annotation : Equatable, Annotation : Sendable
```

## Topics

### Creating an adaptor

[`init(Estimator)`](/documentation/CreateMLComponents/TemporalEstimatorToSupervisedAdaptor/init(_:))

Creates a temporal estimator adaptor.

### Getting the estimator

[`let estimator: Estimator`](/documentation/CreateMLComponents/TemporalEstimatorToSupervisedAdaptor/estimator)

The wrapped estimator.

### Encoding and decoding

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

Does nothing since this estimator uses a pre-defined transformer.

[`func decode(from: inout any EstimatorDecoder) throws -> TemporalEstimatorToSupervisedAdaptor<Estimator, Annotation>.Transformer`](/documentation/CreateMLComponents/TemporalEstimatorToSupervisedAdaptor/decode(from:))

Returns the pre-defined transformer.

### Fitting

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

Fits a transformer to a sequence of examples.

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

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

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

A transformer that takes an input and produces an output.

## Relationships

### Conforms To

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

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

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

---

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)