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

# add(_:)

Updates the metrics with more pairs of classifications and ground truth labels.

## Declaration

```swift
mutating func add(_ pairs: some Sequence<(classification: ClassificationDistribution<Label>, labels: Set<Label>)>)
```

## Parameters

- `pairs`: A sequence of classifications and true label pairs.

## See Also

### Updating the metrics

- [add(classifications:groundTruth:)](createmlcomponents/multilabelclassificationmetrics/add(classifications:groundtruth:).md)
