@Shareable public class PopularityRankItemScorer extends AbstractItemScorer implements Serializable
Item scorer scores items based on their popularity rank. 1 is the most popular item, and 0 is an unknown item.
Constructor and Description |
---|
PopularityRankItemScorer(RatingSummary rs) |
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.
|
score, score
@Inject public PopularityRankItemScorer(RatingSummary rs)
@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
user
- The user ID for whom to generate scores.items
- The item to score.ResultMap
that provides access to those details.