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.
|
getModel
score, score
@Inject public WeightedSlopeOneItemScorer(UserEventDAO dao, SlopeOneModel model, @Nullable PreferenceDomain dom)
public void score(long uid, @Nonnull MutableSparseVector scores)
ItemScorer
score
in interface ItemScorer
score
in class SlopeOneItemScorer
uid
- The user ID.scores
- The score vector.