public class QuantizedRatingPredictor extends AbstractRatingPredictor implements RatingPredictor
| Constructor and Description |
|---|
QuantizedRatingPredictor(ItemScorer scorer,
ItemScorer baseline,
Quantizer q)
Construct a new quantized predictor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
predict(long user,
MutableSparseVector scores)
Predict for items in a vector.
|
predict, predictclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpredict, predict@Inject public QuantizedRatingPredictor(@PrimaryScorer ItemScorer scorer, @Nullable @BaselineScorer ItemScorer baseline, Quantizer q)
scorer - The item scorer to use.baseline - A baseline scorer to fall back to.q - The quantizer.public void predict(long user,
@Nonnull
MutableSparseVector scores)
RatingPredictorpredict in interface RatingPredictoruser - The user ID.scores - The prediction output vector. Its key domain is the items to score.