Package smile.validation.metric
Class ConfusionMatrix
java.lang.Object
smile.validation.metric.ConfusionMatrix
- All Implemented Interfaces:
Serializable
The confusion matrix of truth and predictions.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfusionMatrix
of
(int[] truth, int[] prediction) Creates the confusion matrix.toString()
-
Field Details
-
matrix
public final int[][] matrixConfusion matrix.
-
-
Constructor Details
-
ConfusionMatrix
public ConfusionMatrix(int[][] matrix) Constructor.- Parameters:
matrix
- the confusion matrix.
-
-
Method Details