public abstract class QualityMeasure extends Object
Modifier and Type | Field and Description |
---|---|
protected Recommender |
recommender
Recommender instance for which the quality measure are going to be computed
|
Constructor and Description |
---|
QualityMeasure(Recommender recommender)
Creates a new quality measure
|
Modifier and Type | Method and Description |
---|---|
double |
getScore()
Computes the quality measure of the recommender
|
double |
getScore(int numThreads)
Computes the quality measure of the recommender
|
protected abstract double |
getScore(TestUser testUser,
double[] predictions)
Computes the quality measure score for a TestUser given the predictions for his/her test
ratings
|
protected Recommender recommender
public QualityMeasure(Recommender recommender)
recommender
- Recommender instance for which the quality measure are going to be computedprotected abstract double getScore(TestUser testUser, double[] predictions)
testUser
- TestUser for which the quality measure score is computedpredictions
- Prediction value for the test items rated by the test userpublic double getScore(int numThreads)
numThreads
- Number of threads to compute de quality measure in parallel for each test
user. Use all available threads by default.public double getScore()
Copyright © 2020. All rights reserved.