Package boofcv.struct.learning
Class Confusion
java.lang.Object
boofcv.struct.learning.Confusion
Storage for a confusion matrix. Rows represent the actual type and the columns the predicted type. All the rows
sum up to 1.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Computes accuracy from the confusion matrix.
-
Constructor Details
-
Confusion
public Confusion(int numTypes)
-
-
Method Details
-
getMatrix
-
computeAccuracy
public double computeAccuracy()Computes accuracy from the confusion matrix. This is the sum of the fraction correct divide by total number of types. The number of each sample for each type is not taken in account.- Returns:
- overall accuracy
-