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

# TemporalEstimator

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

```
protocol TemporalEstimator<Transformer>
```

## Topics

### Reading and writing

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

Reads the encoded transformer from a file.

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

Writes the encoded transformer to a file.

### Appending

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

Composes this temporal estimator with a supervised temporal estimator.

### Adapting and fitting

[`func adaptedAsSupervised<Annotation>(annotationType: Annotation.Type) -> TemporalEstimatorToSupervisedAdaptor<Self, Annotation>`](/documentation/CreateMLComponents/TemporalEstimator/adaptedAsSupervised(annotationType:))

Exposes this temporal estimator as a supervised temporal estimator.

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

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

Fits a transformer to a sequence of examples.

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

The transformer type created by this estimator.

### Encoding and decoding

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

Encodes a fitted transformer.

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

Decodes a previously fitted transformer.

## Relationships

### Conforming Types

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

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

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

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

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

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

### Inherited By

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

---

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)