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

# SupervisedTemporalEstimator

An estimator that creates a transformer by fitting to a sequence of annotated temporal features.

```
protocol SupervisedTemporalEstimator<Transformer, Annotation>
```

## Topics

### Reading and writing

[`func read(from: URL) throws -> Self.Transformer`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/read(from:))

Reads the encoded transformer from a file.

[`func write(Self.Transformer, to: URL, overwrite: Bool) throws`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/write(_:to:overwrite:))

Writes the encoded transformer to a file.

[`associatedtype Annotation : Equatable, Sendable`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/Annotation)

The annotation type.

[`associatedtype Transformer : TemporalTransformer`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/Transformer)

The transformer type created by this estimator.

### Appending

[`func appending(_:)`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/appending(_:))

Composes this supervised temporal estimator with another supervised temporal estimator.

### Fitting

[`func fitted<InputSequence, FeatureSequence>(to: InputSequence) async throws -> Self.Transformer`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/fitted(to:))

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

Fits a transformer to a sequence of examples.

[`func fitted<InputSequence, Validation, FeatureSequence>(to: InputSequence, validateOn: Validation) async throws -> Self.Transformer`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/fitted(to:validateOn:))

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

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

[`associatedtype Annotation : Equatable, Sendable`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/Annotation)

The annotation type.

[`associatedtype Transformer : TemporalTransformer`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/Transformer)

The transformer type created by this estimator.

### Encoding and decoding

[`func encode(Self.Transformer, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/SupervisedTemporalEstimator/encode(_:to:))

Encodes a fitted transformer.

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

Decodes a previously fitted transformer.

## Relationships

### Conforming Types

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

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

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

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

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

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

### Inherited By

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

---

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)