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, predict
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
predict, 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)
RatingPredictor
predict
in interface RatingPredictor
user
- The user ID.scores
- The prediction output vector. Its key domain is the items to score.