Class MSEMetric
java.lang.Object
de.uni_trier.wi2.procake.utils.eval.metrics.full.MSEMetric
- 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.static double
computeMeanSquaredError
(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult) Computes the mean-squared error of the ground-truth and the predicted results.Returns a name for the metric to be identified in any string representations.
-
Constructor Details
-
MSEMetric
public MSEMetric()
-
-
Method Details
-
computeMeanSquaredError
public static double computeMeanSquaredError(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult) Computes the mean-squared error of the ground-truth and the predicted results.- Parameters:
groundTruthResult
- the ground-truth resultspredictedResult
- the predicted results- Returns:
- the mean of the element-wise squared errors
-
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
-