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,
java.util.Collection<java.lang.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 java.util.Collection<java.lang.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.