public abstract class ItemItemScoreAccumulator extends Object
Score accumulator for item-item recommendation. It is used to record the results of the item-item CF scoring of one or more items.
Accumulating results here allows us to avoid memory allocations when detailed results are not required.
Modifier and Type | Method and Description |
---|---|
abstract void |
add(long item,
double score,
int nnbrs,
double weight)
Add a score to the accumulator.
|
abstract void |
applyReversedTransform(VectorTransformation transform)
Apply the reverse of a transform to the results.
|
public abstract void add(long item, double score, int nnbrs, double weight)
Add a score to the accumulator.
item
- The item to score.score
- The score.nnbrs
- The number of neighbors used.weight
- The total neighbor weight.public abstract void applyReversedTransform(VectorTransformation transform)
Apply the reverse of a transform to the results.
transform
- The transform to apply.