public class KnownRatingRatingPredictor extends AbstractRatingPredictor
FallbackItemScorer
to return a user's rating
when it is known.RatingPredictorItemScorer
Constructor and Description |
---|
KnownRatingRatingPredictor(UserEventDAO uedao) |
Modifier and Type | Method and Description |
---|---|
void |
predict(long user,
MutableSparseVector predictions)
Predict for items in a vector.
|
predict, predict
@Inject public KnownRatingRatingPredictor(UserEventDAO uedao)
public void predict(long user, @Nonnull MutableSparseVector predictions)
RatingPredictor
user
- The user ID.predictions
- The prediction output vector. Its key domain is the items to score.