init(_:_:)
Creates classification metrics for predicted and ground truth labels.
Declaration
init<Predicted, Correct>(_ predicted: Predicted, _ groundTruth: Correct) where Label == Predicted.Element, Predicted : Collection, Correct : Collection, Predicted.Element == Correct.ElementDiscussion
The predicted and ground truth collections are matched element by element in the order they are provided. Both collections must have the same number of elements.
Parameters
predicted: The predicted labels.
groundTruth: The true labels.