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