Package org.nlpub.watset.eval
Class PrecisionRecall
- java.lang.Object
-
- org.nlpub.watset.eval.PrecisionRecall
-
public class PrecisionRecall extends Object
A wrapper for precision and recall values that computes F-score.- See Also:
- Evaluation of unranked retrieval sets
-
-
Constructor Summary
Constructors Constructor Description PrecisionRecall(double precision, double recall)Wrap the precision and recall values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetF1Score()Compute the F1-score using precision and recall.doublegetFScore(double beta)Compute the Fβ-score using precision and recall.doublegetPrecision()Get the value of precision.doublegetRecall()Get the value of recall.
-
-
-
Method Detail
-
getPrecision
public double getPrecision()
Get the value of precision.- Returns:
- precision
-
getRecall
public double getRecall()
Get the value of recall.- Returns:
- recall
-
getF1Score
public double getF1Score()
Compute the F1-score using precision and recall.- Returns:
- F1-score
-
getFScore
public double getFScore(double beta)
Compute the Fβ-score using precision and recall.- Parameters:
beta- beta value- Returns:
- Fβ-score value
-
-