public interface ItemScorer
Modifier and Type | Method and Description |
---|---|
SparseVector |
score(long user,
Collection<Long> items)
Score a collection of items.
|
double |
score(long user,
long item)
Score a single item.
|
void |
score(long user,
MutableSparseVector scores)
Score items in a vector.
|
double score(long user, long item)
user
- The user ID for whom to generate a score.item
- The item ID to score.Double.NaN
if no score can be generated.@Nonnull SparseVector score(long user, @Nonnull Collection<Long> items)
user
- The user ID for whom to generate scores.items
- The item to score.void score(long user, @Nonnull MutableSparseVector scores)
user
- The user ID.scores
- The score vector.