---
title: Classification
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/classification
---

# Classification

An item in a classification result.

## Declaration

```swift
struct Classification<Label> where Label : Hashable
```

## Topics

### Creating the item

- [init(label:probability:)](createmlcomponents/classification/init(label:probability:).md)

### Getting the properties

- [label](createmlcomponents/classification/label.md)
- [probability](createmlcomponents/classification/probability.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

### Metrics

- [ClassificationDistribution](createmlcomponents/classificationdistribution.md)
- [ClassificationMetrics](createmlcomponents/classificationmetrics.md)
- [MultiLabelClassificationMetrics](createmlcomponents/multilabelclassificationmetrics.md)
- [rootMeanSquaredError(_:)](createmlcomponents/rootmeansquarederror(_:).md)
- [rootMeanSquaredError(_:_:)](createmlcomponents/rootmeansquarederror(_:_:).md)
- [maximumAbsoluteError(_:)](createmlcomponents/maximumabsoluteerror(_:).md)
- [maximumAbsoluteError(_:_:)](createmlcomponents/maximumabsoluteerror(_:_:).md)
- [meanAbsoluteError(_:)](createmlcomponents/meanabsoluteerror(_:).md)
- [meanAbsoluteError(_:_:)](createmlcomponents/meanabsoluteerror(_:_:).md)
- [meanAbsolutePercentageError(_:)](createmlcomponents/meanabsolutepercentageerror(_:).md)
- [meanSquaredError(_:)](createmlcomponents/meansquarederror(_:).md)
- [meanSquaredError(_:_:)](createmlcomponents/meansquarederror(_:_:).md)
