@DefaultImplementation(value=WeightedAverageNeighborhoodScorer.class) public interface NeighborhoodScorer
This interface encapsulates aggregating user scores and item similarities into a final score. The neighborhood is pre-filtered to only contain items for which scores are available, and truncated to the neighborhood size, so all functions implementing this interface need to do is accumulate scores.
ScoredId score(long item, SparseVector neighbors, SparseVector scores)
neighbors- A vector of neighbors with similarity measures.
scores- A vector of item scores. It should contain a score for every item in neighbors.
nullif no score could be computed.