public class QuantizedRatingPredictor extends AbstractRatingPredictor
A rating predictor wrapper that quantizes scores to compute predictions.
Constructor and Description |
---|
QuantizedRatingPredictor(ItemScorer scorer,
Quantizer q)
Construct a new quantized predictor.
|
Modifier and Type | Method and Description |
---|---|
ResultMap |
predictWithDetails(long user,
Collection<Long> items)
Predict the user’s preference for a collection of items, potentially with additional details.
|
predict, predict
@Inject public QuantizedRatingPredictor(@PredictionScorer ItemScorer scorer, Quantizer q)
Construct a new quantized predictor.
scorer
- The item scorer to use.q
- The quantizer.@Nonnull public ResultMap predictWithDetails(long user, @Nonnull Collection<Long> items)
RatingPredictor
Predict the user’s preference for a collection of items, potentially with additional details.
user
- The user ID for whom to generate predicts.items
- The items to predict for.