public abstract class AbstractItemScorer extends Object implements ItemScorer
ItemScorer.score(long, MutableSparseVector)
.Constructor and Description |
---|
AbstractItemScorer() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
score
@Nonnull public SparseVector score(long user, @Nonnull Collection<Long> items)
Delegates to ItemScorer.score(long, MutableSparseVector)
.
score
in interface ItemScorer
user
- The user ID for whom to generate scores.items
- The item to score.public double score(long user, long item)
Delegates to score(long, Collection)
.
score
in interface ItemScorer
user
- The user ID for whom to generate a score.item
- The item ID to score.Double.NaN
if no score can be generated.