Class SpearmanMetric
java.lang.Object
de.uni_trier.wi2.procake.utils.eval.metrics.full.SpearmanMetric
- All Implemented Interfaces:
EvalMetric
- Author:
- Maximilian Hoffmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeEvalMetric
(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult) Computes a ranking metric for the complete ranking.Returns a name for the metric to be identified in any string representations.
-
Constructor Details
-
SpearmanMetric
public SpearmanMetric()
-
-
Method Details
-
computeEvalMetric
public double computeEvalMetric(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult) Description copied from interface:EvalMetric
Computes a ranking metric for the complete ranking.- Specified by:
computeEvalMetric
in interfaceEvalMetric
- Parameters:
groundTruthResult
- the ground-truth rankingpredictedResult
- the predicted ranking (to analyze)- Returns:
- a double score
-
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
-