@DefaultProvider(value=ItemMeanRatingItemScorer.Builder.class) @Shareable public class ItemMeanRatingItemScorer extends AbstractItemScorer implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemMeanRatingItemScorer.Builder
A builder to create ItemMeanPredictors.
|
| Constructor and Description |
|---|
ItemMeanRatingItemScorer(ImmutableSparseVector itemMeans,
double globalMean,
double damping)
Construct a new scorer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
score(long user,
MutableSparseVector items)
Score items in a vector.
|
String |
toString() |
score, scorepublic ItemMeanRatingItemScorer(ImmutableSparseVector itemMeans, double globalMean, double damping)
itemMeans - A map of item IDs to their mean ratings.globalMean - The mean rating value for all items.damping - The damping factor.public void score(long user,
@Nonnull
MutableSparseVector items)
ItemScorerscore in interface ItemScoreruser - The user ID.items - The score vector.