@DefaultProvider(value=LeastSquaresItemScorer.Builder.class) @Shareable public class LeastSquaresItemScorer extends AbstractItemScorer implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LeastSquaresItemScorer.Builder
The builder for the least squares predictor.
|
| Constructor and Description |
|---|
LeastSquaresItemScorer(ImmutableSparseVector uoff,
ImmutableSparseVector ioff,
double mean)
Construct a new least-squares scorer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
score(long user,
MutableSparseVector output)
Score items in a vector.
|
score, scorepublic LeastSquaresItemScorer(ImmutableSparseVector uoff, ImmutableSparseVector ioff, double mean)
uoff - the user offsetsioff - the item offsetsmean - the global mean ratingpublic void score(long user,
MutableSparseVector output)
ItemScorerscore in interface ItemScoreruser - The user ID.output - The score vector.