public class FunkSVDItemScorer extends AbstractItemScorer
| Modifier and Type | Field and Description |
|---|---|
protected BiasedMFKernel |
kernel |
protected FunkSVDModel |
model |
| Constructor and Description |
|---|
FunkSVDItemScorer(UserEventDAO dao,
FunkSVDModel model,
ItemScorer baseline,
PreferenceDomain dom,
FunkSVDUpdateRule rule)
Construct the item scorer.
|
| Modifier and Type | Method and Description |
|---|---|
FunkSVDUpdateRule |
getUpdateRule() |
void |
score(long user,
MutableSparseVector scores)
Score items in a vector.
|
score, scoreprotected final FunkSVDModel model
protected final BiasedMFKernel kernel
@Inject public FunkSVDItemScorer(UserEventDAO dao, FunkSVDModel model, @BaselineScorer ItemScorer baseline, @Nullable PreferenceDomain dom, @Nullable @RuntimeUpdate FunkSVDUpdateRule rule)
dao - The DAO.model - The model.baseline - The baseline scorer. Be very careful when configuring a different baseline
at runtime than at model-build time; such a configuration is unlikely to
perform well.rule - The update rule, or null (the default) to only use the user features
from the model. If provided, this update rule is used to update a user's
feature values based on their profile when scores are requested.@Nullable public FunkSVDUpdateRule getUpdateRule()
public void score(long user,
@Nonnull
MutableSparseVector scores)
ItemScoreruser - The user ID.scores - The score vector.