public abstract class AbstractItemScorer extends java.lang.Object implements ItemScorer
ItemScorer.score(long, MutableSparseVector).| Constructor and Description |
|---|
AbstractItemScorer() |
| Modifier and Type | Method and Description |
|---|---|
SparseVector |
score(long user,
java.util.Collection<java.lang.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, waitscore@Nonnull public SparseVector score(long user, @Nonnull java.util.Collection<java.lang.Long> items)
Delegates to ItemScorer.score(long, MutableSparseVector).
score in interface ItemScoreruser - 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 ItemScoreruser - The user ID for whom to generate a score.item - The item ID to score.Double.NaN if no score can be generated.