public class MEstimate extends Heuristic
ConfusionMatrix. The
m-estimate trades-off precision (if m = 0) and accuracy (if m approaches Double.POSITIVE_INFINITY).Heuristic.Comparator<T extends Measurable>| Constructor and Description |
|---|
MEstimate()
Creates the default m-estimate with the m-parameter set to 22.466.
|
MEstimate(double m)
Creates a new m-estimate with a specific m-parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
evaluate(@NotNull ConfusionMatrix confusionMatrix)
Calculates a heuristic values based on a
ConfusionMatrix. |
double |
getM()
Returns the value of the m-parameter.
|
int |
hashCode() |
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() |
evaluate, isLossMetricpublic MEstimate()
public MEstimate(double m)
m - The value of the m-parameterpublic double getM()
public 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