init(classifications:groundTruth:strategy:labels:)
Creates multi-label classification metrics for classifications and ground truth labels.
Declaration
init(classifications: some Sequence<ClassificationDistribution<Label>>, groundTruth: some Sequence<Set<Label>>, strategy: MultiLabelClassificationMetrics<Label>.ThresholdSelectionStrategy, labels: Set<Label>) throwsParameters
- classifications:
A sequence of classifications.
- groundTruth:
A sequence of true labels.
- strategy:
A label confidence threshold selection strategy.
- labels:
The set of labels to consider.
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.