init(_:labels:)
Creates classification metrics for a sequence of predicted and ground truth label pairs.
Declaration
init(_ pairs: some Sequence<(predicted: Label, label: Label)>, labels: Set<Label>)Parameters
- pairs:
A sequence of predicted and true label pairs.
- labels:
The set of labels to consider.