Class Confusion

java.lang.Object
boofcv.struct.learning.Confusion

public class Confusion extends Object
Storage for a confusion matrix. Rows represent the actual type and the columns the predicted type. All the rows sum up to 1.
  • Constructor Details

    • Confusion

      public Confusion(int numTypes)
  • Method Details

    • getMatrix

      public DMatrixRMaj 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