public class Accuracy extends Heuristic
ConfusionMatrix.
Accuracy calculates as the fraction of correct predictions (TP + FP) among all predictions (TP +
FP + TN + FN).Heuristic.Comparator<T extends Measurable>| Constructor and Description |
|---|
Accuracy() |
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(@NotNull ConfusionMatrix confusionMatrix)
Calculates a heuristic values based on a
ConfusionMatrix. |
boolean |
isGainMetric()
Returns, whether the heuristic is a gain metric, i.e.
|
double |
maxValue()
Returns the maximum heuristic value that may be calculated by the heuristic.
|
double |
minValue()
Returns the minimum heuristic value that may be calculated by the heuristic.
|
java.lang.String |
toString() |
equals, evaluate, hashCode, isLossMetricpublic double evaluate(@NotNull
@NotNull ConfusionMatrix confusionMatrix)
HeuristicConfusionMatrix.public boolean isGainMetric()
HeuristicisGainMetric in class Heuristicpublic double maxValue()
Heuristicpublic double minValue()
Heuristicpublic java.lang.String toString()
toString in class java.lang.Object