public interface ItemScorer
Score items for users. These scores can be predicted ratings, relevance scores, purchase probabilities, or any other real-valued score which can be assigned to an item for a particular user.
Modifier and Type | Method and Description |
---|---|
Map<Long,Double> |
score(long user,
Collection<Long> items)
Score a collection of items.
|
Result |
score(long user,
long item)
Score a single item.
|
ResultMap |
scoreWithDetails(long user,
Collection<Long> items)
Score a collection of items and potentially return more details on the scores.
|
Result score(long user, long item)
Score a single item.
user
- The user ID for whom to generate a score.item
- The item ID to score.null
if no score can be generated.@Nonnull Map<Long,Double> score(long user, @Nonnull Collection<Long> items)
Score a collection of items.
user
- The user ID for whom to generate scores.items
- The item to score.@Nonnull ResultMap scoreWithDetails(long user, @Nonnull Collection<Long> items)
Score a collection of items and potentially return more details on the scores.
user
- The user ID for whom to generate scores.items
- The item to score.ResultMap
that provides access to those details.