public class Perfect extends QualityMeasure
recommender
Constructor and Description |
---|
Perfect(Recommender recommender,
double threshold)
Constructor of the class which basically calls the father's one
|
Perfect(Recommender recommender,
Map<String,Object> params)
Constructor from a Map object with the quality measure parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getScore(TestUser testUser,
double[] predictions)
Computes the quality measure score for a TestUser given the predictions for his/her test
ratings
|
getScore, getScore
public Perfect(Recommender recommender, Map<String,Object> params)
recommender
- Recommender instance for which the Perfect score are going to be computedparams
- Quality measure's parameterspublic Perfect(Recommender recommender, double threshold)
recommender
- Recommender instance for which the perfect score are going to be computedthreshold
- Threshold value to measure if a prediction is perfect or notpublic double getScore(TestUser testUser, double[] predictions)
QualityMeasure
getScore
in class QualityMeasure
testUser
- TestUser for which the quality measure score is computedpredictions
- Prediction value for the test items rated by the test userCopyright © 2020. All rights reserved.