---
title: AnnotatedPrediction
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/annotatedprediction
---

# AnnotatedPrediction

An annotated prediction.

## Declaration

```swift
struct AnnotatedPrediction<Prediction, Annotation>
```

## Topics

### Creating an annotated prediction

- [init(prediction:annotation:)](createmlcomponents/annotatedprediction/init(prediction:annotation:).md)

### Getting the properties

- [annotation](createmlcomponents/annotatedprediction/annotation.md)
- [prediction](createmlcomponents/annotatedprediction/prediction.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)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Annotations

- [AnnotatedFiles](createmlcomponents/annotatedfiles.md)
- [AnnotatedBatch](createmlcomponents/annotatedbatch.md)
- [AnnotatedFeature](createmlcomponents/annotatedfeature.md)
- [AnnotatedFeatureProvider](createmlcomponents/annotatedfeatureprovider.md)
- [DataFrameTemporalAnnotationParameters](createmlcomponents/dataframetemporalannotationparameters.md)
