public interface RatingPredictor
ItemScorer
, but its output will be
predicted ratings.Modifier and Type | Method and Description |
---|---|
SparseVector |
predict(long user,
Collection<Long> items)
Predict the user's preference for a collection of items.
|
double |
predict(long user,
long item)
Predict a user's rating for a single item.
|
void |
predict(long user,
MutableSparseVector predictions)
Predict for items in a vector.
|
double predict(long user, long item)
user
- The user ID for whom to generate a prediction.item
- The item ID whose rating is to be predicted.Double.NaN
if no preference can be
predicted.@Nonnull SparseVector predict(long user, @Nonnull Collection<Long> items)
user
- The user ID for whom to generate predicts.items
- The items to predict for.void predict(long user, @Nonnull MutableSparseVector predictions)
user
- The user ID.predictions
- The prediction output vector. Its key domain is the items to score.