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.
|
getModel
score, score
@Inject public WeightedSlopeOneItemScorer(RatingVectorPDAO dao, SlopeOneModel model, @Nullable PreferenceDomain dom)
@Nonnull public ResultMap scoreWithDetails(long user, @Nonnull Collection<Long> items)
ItemScorer
Score a collection of items and potentially return more details on the scores.
scoreWithDetails
in interface ItemScorer
scoreWithDetails
in class SlopeOneItemScorer
user
- The user ID for whom to generate scores.items
- The item to score.ResultMap
that provides access to those details.