add(classifications:groundTruth:)
Updates the metrics with more classifications and ground truth labels.
Declaration
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
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.