---
title: "add(classifications:groundTruth:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/multilabelclassificationmetrics/add(classifications:groundtruth:)"
---

# add(classifications:groundTruth:)

Updates the metrics with more classifications and ground truth labels.

## Declaration

```swift
mutating func add(classifications: some Sequence<ClassificationDistribution<Label>>, groundTruth: some Sequence<Set<Label>>)
```

## Parameters

- `classifications`: A collection of classifications.
- `groundTruth`: A collection of true labels.

## 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

### Updating the metrics

- [add(_:)](createmlcomponents/multilabelclassificationmetrics/add(_:).md)
