Package com.bayesserver.analysis
Class ConfusionMatrixCell
- java.lang.Object
-
- com.bayesserver.analysis.ConfusionMatrixCell
-
public final class ConfusionMatrixCell extends Object
Contains statistics about a cell in aConfusionMatrix
.
-
-
Constructor Summary
Constructors Constructor Description ConfusionMatrixCell()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getProbability()
Gets the overall probability for this cell.Double
getProbabilityGivenActual()
Gets the probability for this cell, conditional on the actual counts.Double
getProbabilityGivenPredicted()
Gets the probability for this cell, conditional on the predicted counts.double
size()
Gets the count (support) for this cell.
-
-
-
Method Detail
-
size
public double size()
Gets the count (support) for this cell. This is the number of cases that have been classified as belonging to this cell.
-
getProbability
public double getProbability()
Gets the overall probability for this cell. This is the proportion of cases that have been classified as belonging to this cell.
-
getProbabilityGivenActual
public Double getProbabilityGivenActual()
Gets the probability for this cell, conditional on the actual counts. For binary classifiers, the terms recall rate/sensitivity/true positive rate/specificity/true negative rate are sometimes used to refer to particular cells.
-
getProbabilityGivenPredicted
public Double getProbabilityGivenPredicted()
Gets the probability for this cell, conditional on the predicted counts. For binary classifiers, the terms precision/positive predicted value, are sometimes used to refer to particular cells.
-
-