Contents

makeConfusionMatrix()

Computes the confusion matrix.

Declaration

func makeConfusionMatrix() -> MLShapedArray<Float> where Label : Comparable, Label : Decodable, Label : Encodable

Discussion

The ith row and jth column value indicate the count of true label being the ith class and predicted label being the jth class. The labels are sorted in ascending order.

See Also

Computing and scoring