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
Normalized version of
HitsMetric
.- Author:
- Alexander Schultheis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeEvalKMetric
(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult, Integer k) Computes a ranking metric for the top-k cases of the ranking results.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
-
Constructor Details
-
HitsNormMetric
public HitsNormMetric() -
HitsNormMetric
public HitsNormMetric(int k)
-
-
Method Details
-
getMetricName
Description copied from interface:EvalMetric
Returns a name for the metric to be identified in any string representations.- Specified by:
getMetricName
in interfaceEvalMetric
- Overrides:
getMetricName
in classHitsMetric
- Returns:
- the name of the metric
-
computeEvalKMetric
public double computeEvalKMetric(SimpleSimilarityResult groundTruthRankingResult, SimpleSimilarityResult predictedRankingResult, Integer k) Description copied from class:KEvalMetric
Computes a ranking metric for the top-k cases of the ranking results.- Overrides:
computeEvalKMetric
in 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
-