@DefaultProvider(value=GlobalMeanRatingItemScorer.Builder.class) @Shareable public class GlobalMeanRatingItemScorer extends ConstantItemScorer
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalMeanRatingItemScorer.Builder
A default builder used to create GlobalMeanPredictors.
|
ConstantItemScorer.Value| Constructor and Description |
|---|
GlobalMeanRatingItemScorer(double mean)
Construct a new global mean scorer where it is assumed
that the given value is the global mean.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
computeMeanRating(EventDAO dao)
Utility method to compute the mean or average of the rating values
contained in the given collection of ratings.
|
score, score, score, toStringpublic GlobalMeanRatingItemScorer(double mean)
mean - The global mean.public static double computeMeanRating(EventDAO dao)
dao - The DAO to average.