public abstract class AbstractGlobalItemScorer extends Object implements GlobalItemScorer
Constructor and Description |
---|
AbstractGlobalItemScorer() |
Modifier and Type | Method and Description |
---|---|
MutableSparseVector |
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
globalScore
public double globalScore(@Nonnull Collection<Long> queryItems, long item)
Delegate to globalScore(Collection, Collection)
.
globalScore
in interface GlobalItemScorer
queryItems
- The objective items ID used as the queryitem
- The item ID to score.Double.NaN
if no preference can be
predicted.@Nonnull public MutableSparseVector globalScore(@Nonnull Collection<Long> queryItems, @Nonnull Collection<Long> items)
GlobalItemScorer
globalScore
in interface GlobalItemScorer
queryItems
- The objective items ID used as the queryitems
- The list of items to score.