makeConfusionMatrix()
Computes the confusion matrix.
Declaration
func makeConfusionMatrix() -> MLShapedArray<Float> where Label : Comparable, Label : Decodable, Label : EncodableDiscussion
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.