init(_:strategy:labels:)
Creates multi-label classification metrics for classifications and ground truth labels.
Declaration
init(_ pairs: some Sequence<(classification: ClassificationDistribution<Label>, labels: Set<Label>)>, strategy: MultiLabelClassificationMetrics<Label>.ThresholdSelectionStrategy, labels: Set<Label>) throwsParameters
- pairs:
A sequence of pairs with a classification distribution and a set of labels.
- strategy:
A label confidence threshold selection strategy.
- labels:
The set of labels to consider.