Class CorrectnessMetric
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.eval.metrics.full.CorrectnessMetric
-
- All Implemented Interfaces:
EvalMetric
public class CorrectnessMetric extends Object implements EvalMetric
- Author:
- Maximilian Hoffmann
-
-
Constructor Summary
Constructors Constructor Description CorrectnessMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
computeEvalMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult)
Computes a ranking metric for the complete ranking.String
getMetricName()
Returns a name for the metric to be identified in any string representations.
-
-
-
Method Detail
-
computeEvalMetric
public double computeEvalMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult)
Description copied from interface:EvalMetric
Computes a ranking metric for the complete ranking.- Specified by:
computeEvalMetric
in interfaceEvalMetric
- Parameters:
groundTruthRankingResult
- the ground-truth rankingpredictedRankingResult
- the predicted ranking (to analyze)- Returns:
- a double score
-
getMetricName
public String getMetricName()
Description copied from interface:EvalMetric
Returns a name for the metric to be identified in any string representations.- Specified by:
getMetricName
in interfaceEvalMetric
- Returns:
- the name of the metric
-
-