public class SetRetrievalEvaluator extends Object
Constructor and Description |
---|
SetRetrievalEvaluator(Collection<RetrievalEvaluator> evaluators)
Creates a new instance of SetRetrievalEvaluator
|
Modifier and Type | Method and Description |
---|---|
Map<String,Double> |
evaluateAll(String metric)
Get a
Map containing a particular metric value for each query. |
double |
geometricMeanAveragePrecision() |
Collection<RetrievalEvaluator> |
getEvaluators() |
static int[] |
getFixedPoints() |
double[] |
interpolatedPrecision() |
double |
meanAveragePrecision() |
double |
meanBinaryPreference() |
double |
meanNormalizedDiscountedCumulativeGain() |
double |
meanNormalizedDiscountedCumulativeGain(int documentsRetrieved) |
double |
meanPrecision(int documentsRetrieved) |
double |
meanReciprocalRank() |
double |
meanRPrecision() |
int |
numberRelevant() |
int |
numberRelevantRetrieved() |
int |
numberRetrieved() |
double[] |
precisionAtFixedPoints() |
String |
toString() |
public SetRetrievalEvaluator(Collection<RetrievalEvaluator> evaluators)
evaluators
- public Collection<RetrievalEvaluator> getEvaluators()
public static int[] getFixedPoints()
public double[] precisionAtFixedPoints()
public double[] interpolatedPrecision()
public double meanAveragePrecision()
public double meanBinaryPreference()
public double geometricMeanAveragePrecision()
public double meanPrecision(int documentsRetrieved)
documentsRetrieved
- public double meanReciprocalRank()
public double meanRPrecision()
public double meanNormalizedDiscountedCumulativeGain()
public double meanNormalizedDiscountedCumulativeGain(int documentsRetrieved)
documentsRetrieved
- public Map<String,Double> evaluateAll(String metric) throws IllegalArgumentException
Map
containing a particular metric value for each query.
For instance, if metric == "averagePrecision", this returns
a map where the keys are query identifiers and the values are the
average precision metric evaluated for each query.metric
- the metric name.Map
containing a particular metric value for each query.IllegalArgumentException
public int numberRetrieved()
public int numberRelevant()
public int numberRelevantRetrieved()