Class HitsNormMetric
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.eval.metrics.k.KEvalMetric
-
- de.uni_trier.wi2.procake.utils.eval.metrics.k.HitsMetric
-
- de.uni_trier.wi2.procake.utils.eval.metrics.k.HitsNormMetric
-
- All Implemented Interfaces:
EvalMetric
public class HitsNormMetric extends HitsMetric
Normalized version ofHitsMetric.- Author:
- Alexander Schultheis
-
-
Constructor Summary
Constructors Constructor Description HitsNormMetric()HitsNormMetric(int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeEvalKMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult, Integer k)Computes a ranking metric for the top-k cases of the ranking results.StringgetMetricName()Returns a name for the metric to be identified in any string representations.-
Methods inherited from class de.uni_trier.wi2.procake.utils.eval.metrics.k.KEvalMetric
computeEvalMetric, getK, setK
-
-
-
-
Method Detail
-
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- Overrides:
getMetricNamein classHitsMetric- Returns:
- the name of the metric
-
computeEvalKMetric
public double computeEvalKMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult, Integer k)
Description copied from class:KEvalMetricComputes a ranking metric for the top-k cases of the ranking results.- Overrides:
computeEvalKMetricin classHitsMetric- Parameters:
groundTruthRankingResult- the ground-truth rankingpredictedRankingResult- the predicted ranking results to analyzek- the number of top cases to look at- Returns:
- a score for the ranking according to this metric
-
-