init(classifications:groundTruth:strategy:)
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) throwsParameters
- classifications:
A sequence of classifications.
- groundTruth:
A sequence of true labels.
- strategy:
A label confidence threshold selection strategy.
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.