Class RMSE
- java.lang.Object
-
- es.upm.etsisi.cf4j.qualityMeasure.QualityMeasure
-
- es.upm.etsisi.cf4j.qualityMeasure.prediction.MSE
-
- es.upm.etsisi.cf4j.qualityMeasure.prediction.RMSE
-
public class RMSE extends MSE
This class calculates the Root Mean Squared Error (RMSE) between the predictions and the test ratings.MSE = √(∑(<test item rating prediction> - <test item rating>)2 / <number of predictions>)
-
-
Field Summary
-
Fields inherited from class es.upm.etsisi.cf4j.qualityMeasure.QualityMeasure
recommender
-
-
Constructor Summary
Constructors Constructor Description RMSE(Recommender recommender)
Constructor of the class which basically calls the father's one
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getScore(TestUser testUser, double[] predictions)
Computes the quality measure score for a TestUser given the predictions for his/her test ratings-
Methods inherited from class es.upm.etsisi.cf4j.qualityMeasure.QualityMeasure
getScore, getScore
-
-
-
-
Constructor Detail
-
RMSE
public RMSE(Recommender recommender)
Constructor of the class which basically calls the father's one- Parameters:
recommender
- Recommender instance for which the RMSE are going to be computed
-
-
Method Detail
-
getScore
public double getScore(TestUser testUser, double[] predictions)
Description copied from class:QualityMeasure
Computes the quality measure score for a TestUser given the predictions for his/her test ratings
-
-