---
title: TemporalFeature
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/temporalfeature
---

# TemporalFeature

A temporal feature contains a segment identifier and a feature value.

## Declaration

```swift
struct TemporalFeature<Feature>
```

## Topics

### Creating a temporal feature

- [init(id:feature:)](createmlcomponents/temporalfeature/init(id:feature:).md)

### Getting the properties

- [feature](createmlcomponents/temporalfeature/feature.md)
- [id](createmlcomponents/temporalfeature/id.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Time-based components

- [Creating a time-series classifier](createmlcomponents/creating-a-time-series-classifier.md)
- [Creating a time-series forecaster](createmlcomponents/creating-a-time-series-forecaster.md)
- [DateFeatures](createmlcomponents/datefeatures.md)
- [DateFeatureExtractor](createmlcomponents/datefeatureextractor.md)
- [LinearTimeSeriesForecaster](createmlcomponents/lineartimeseriesforecaster.md)
- [LinearTimeSeriesForecasterConfiguration](createmlcomponents/lineartimeseriesforecasterconfiguration.md)
- [TimeSeriesForecasterBatches](createmlcomponents/timeseriesforecasterbatches.md)
- [TimeSeriesForecasterAnnotatedWindows](createmlcomponents/timeseriesforecasterannotatedwindows.md)
- [TemporalSequence](createmlcomponents/temporalsequence.md)
- [TemporalSegmentIdentifier](createmlcomponents/temporalsegmentidentifier.md)
- [SlidingWindows](createmlcomponents/slidingwindows.md)
- [SlidingWindowTransformer](createmlcomponents/slidingwindowtransformer.md)
- [Downsampler](createmlcomponents/downsampler.md)
- [VideoReader](createmlcomponents/videoreader.md)
- [TemporalFileSegment](createmlcomponents/temporalfilesegment.md)
