|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FMetricsView
A read-only view of the evaluation results calculated by the
FMetrics
class and the underlying raw counts.
Method Summary | |
---|---|
double |
getF1Measure()
Returns the F-measure, setting alpha = 0.5 so P and R are weighted equal ("F1 measure"). |
double |
getFMeasure(double alpha)
Returns the F-measure: F = 1 / (alpha * (1/P) + (1-alpha) * (1/R)). |
double |
getPrecision()
Returns the precision: P = tp / (tp + fp). |
double |
getRecall()
Returns the recall: R = tp / (tp + fn). |
Methods inherited from interface de.fu_berlin.ties.eval.EvalInput |
---|
getFalseNeg, getFalsePos, getTruePos |
Methods inherited from interface de.fu_berlin.ties.io.Storable |
---|
storeFields |
Method Detail |
---|
double getF1Measure()
double getFMeasure(double alpha) throws IllegalArgumentException
alpha
- a factor in the range from 0.0 to 1.0 defining the weighting
of precision and recall
IllegalArgumentException
- if alpha
is smaller than
0.0 or larger than 1.0double getPrecision()
double getRecall()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |