public class BiasedMFItemScorer extends AbstractItemScorer
Constructor and Description |
---|
BiasedMFItemScorer(MFModel mod,
BiasedMFKernel kern,
ItemScorer bl)
Create a new biased MF item scorer.
|
Modifier and Type | Method and Description |
---|---|
protected mikera.vectorz.AVector |
getUserPreferenceVector(long user)
Get a user's preference vector.
|
void |
score(long user,
MutableSparseVector scores)
Score items in a vector.
|
score, score
@Inject public BiasedMFItemScorer(MFModel mod, BiasedMFKernel kern, @BaselineScorer ItemScorer bl)
mod
- The model (factorized matrix)kern
- The kernel function to compute scores.bl
- The baseline scorer (used to compute biases).@Nullable protected mikera.vectorz.AVector getUserPreferenceVector(long user)
user
- The user ID.null
if no preferences are available for the
user.public void score(long user, @Nonnull MutableSparseVector scores)
ItemScorer
user
- The user ID.scores
- The score vector.