public interface GlobalItemScorer
Modifier and Type | Method and Description |
---|---|
SparseVector |
globalScore(Collection<Long> queryItems,
Collection<Long> items)
Score a collection of items based on a collection of items(a shopping basket).
|
double |
globalScore(Collection<Long> queryItems,
long item)
Score a single item based on a collection of items(a shopping basket).
|
void |
globalScore(Collection<Long> queryItems,
MutableSparseVector output)
Score items in a vector based on a collection of items (a shopping basket).
|
double globalScore(@Nonnull Collection<Long> queryItems, long item)
queryItems
- The objective items ID used as the queryitem
- The item ID to score.Double.NaN
if no preference can be
predicted.@Nonnull SparseVector globalScore(@Nonnull Collection<Long> queryItems, @Nonnull Collection<Long> items)
queryItems
- The objective items ID used as the queryitems
- The list of items to score.void globalScore(@Nonnull Collection<Long> queryItems, @Nonnull MutableSparseVector output)
queryItems
- The items to use as the query.output
- A vector whose key domain is the items to score.ItemScorer.score(long, MutableSparseVector)