public class WeightedSlopeOneItemScorer extends SlopeOneItemScorer
ItemScorer that implements a weighted Slope One algorithm.dao, domain, model| Constructor and Description |
|---|
WeightedSlopeOneItemScorer(UserEventDAO dao,
SlopeOneModel model,
PreferenceDomain dom) |
| Modifier and Type | Method and Description |
|---|---|
void |
score(long uid,
MutableSparseVector scores)
Score items in a vector.
|
getModelscore, score@Inject public WeightedSlopeOneItemScorer(UserEventDAO dao, SlopeOneModel model, @Nullable PreferenceDomain dom)
public void score(long uid,
@Nonnull
MutableSparseVector scores)
ItemScorerscore in interface ItemScorerscore in class SlopeOneItemScoreruid - The user ID.scores - The score vector.