---
title: AnnotatedBatch
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/annotatedbatch
---

# AnnotatedBatch

A batch of annotated examples for fitting a supervised estimator.

## Declaration

```swift
struct AnnotatedBatch<Scalar> where Scalar : MLShapedArrayScalar
```

## Topics

### Creating an annotated batch

- [init(features:annotations:)](createmlcomponents/annotatedbatch/init(features:annotations:).md)

### Inspecting an annotated batch

- [annotations](createmlcomponents/annotatedbatch/annotations.md)
- [count](createmlcomponents/annotatedbatch/count.md)
- [features](createmlcomponents/annotatedbatch/features.md)

## Relationships

### Conforms To

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

## See Also

### Annotations

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