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

# add(_:)

Updates the metrics with more predicted and ground truth label pairs.

## Declaration

```swift
mutating func add(_ pairs: some Sequence<(predicted: Label, label: Label)>)
```

## Parameters

- `pairs`: A collection of predicted and true label pairs.

## See Also

### Updating the metrics

- [add(predicted:groundTruth:)](createmlcomponents/classificationmetrics/add(predicted:groundtruth:).md)
