public class PrecomputedItemScorer extends AbstractItemScorer implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PrecomputedItemScorer.Builder
Builder for mock item scorers.
|
Modifier and Type | Method and Description |
---|---|
static PrecomputedItemScorer.Builder |
newBuilder()
Construct a new builder for precomputed item scorers.
|
void |
score(long user,
MutableSparseVector scores)
Score items in a vector.
|
score, score
public void score(long user, @Nonnull MutableSparseVector scores)
ItemScorer
score
in interface ItemScorer
user
- The user ID.scores
- The score vector.public static PrecomputedItemScorer.Builder newBuilder()