public class WeightedSlopeOneItemScorer extends SlopeOneItemScorer
An ItemScorer that implements a weighted Slope One algorithm.
dao, domain, model| Constructor and Description |
|---|
WeightedSlopeOneItemScorer(RatingVectorPDAO dao,
SlopeOneModel model,
PreferenceDomain dom) |
| Modifier and Type | Method and Description |
|---|---|
ResultMap |
scoreWithDetails(long user,
Collection<Long> items)
Score a collection of items and potentially return more details on the scores.
|
getModelscore, score@Inject public WeightedSlopeOneItemScorer(RatingVectorPDAO dao, SlopeOneModel model, @Nullable PreferenceDomain dom)
@Nonnull public ResultMap scoreWithDetails(long user, @Nonnull Collection<Long> items)
ItemScorerScore a collection of items and potentially return more details on the scores.
scoreWithDetails in interface ItemScorerscoreWithDetails in class SlopeOneItemScoreruser - The user ID for whom to generate scores.items - The item to score.ResultMap that provides access to those details.