public class FallbackItemScorer extends AbstractItemScorer
| Modifier and Type | Field and Description |
|---|---|
static TypedSymbol<ScoreSource> |
SCORE_SOURCE_SYMBOL |
| Constructor and Description |
|---|
FallbackItemScorer(ItemScorer primary,
ItemScorer baseline) |
| Modifier and Type | Method and Description |
|---|---|
ItemScorer |
getBaselineScorer()
Get the baseline scorer from this item scorer.
|
ItemScorer |
getPrimaryScorer()
Get the primary scorer from this item scorer.
|
void |
score(long user,
MutableSparseVector output)
Score items in a vector.
|
score, scorepublic static final TypedSymbol<ScoreSource> SCORE_SOURCE_SYMBOL
@Inject public FallbackItemScorer(@PrimaryScorer ItemScorer primary, @BaselineScorer ItemScorer baseline)
public void score(long user,
@Nonnull
MutableSparseVector output)
ItemScoreruser - The user ID.output - The score vector.@Nonnull public ItemScorer getPrimaryScorer()
PrimaryScorer@Nonnull public ItemScorer getBaselineScorer()
BaselineScorer