---
title: "init(classifications:groundTruth:strategy:labels:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/multilabelclassificationmetrics/init(classifications:groundtruth:strategy:labels:)"
---

# init(classifications:groundTruth:strategy:labels:)

Creates multi-label classification metrics for classifications and ground truth labels.

## Declaration

```swift
init(classifications: some Sequence<ClassificationDistribution<Label>>, groundTruth: some Sequence<Set<Label>>, strategy: MultiLabelClassificationMetrics<Label>.ThresholdSelectionStrategy, labels: Set<Label>) throws
```

## Parameters

- `classifications`: A sequence of classifications.
- `groundTruth`: A sequence of true labels.
- `strategy`: A label confidence threshold selection strategy.
- `labels`: The set of labels to consider.

## Discussion

Discussion The classifications and ground truth sequences are matched element by element in the order they are provided. Both sequences must have the same number of elements.

## See Also

### Creating the distribution

- [init(_:strategy:)](createmlcomponents/multilabelclassificationmetrics/init(_:strategy:).md)
- [init(_:strategy:labels:)](createmlcomponents/multilabelclassificationmetrics/init(_:strategy:labels:).md)
- [init(classifications:groundTruth:strategy:)](createmlcomponents/multilabelclassificationmetrics/init(classifications:groundtruth:strategy:).md)
- [init(confidenceThresholds:)](createmlcomponents/multilabelclassificationmetrics/init(confidencethresholds:).md)
- [MultiLabelClassificationMetrics.ThresholdSelectionStrategy](createmlcomponents/multilabelclassificationmetrics/thresholdselectionstrategy.md)
