Contents

init(_:strategy:)

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) throws

Parameters

  • pairs:

    A sequence of classifications and true label pairs.

  • strategy:

    A label confidence threshold selection strategy.

See Also

Creating the distribution