@Shareable public class SimilaritySumNeighborhoodScorer extends Object implements NeighborhoodScorer, Serializable
Constructor and Description |
---|
SimilaritySumNeighborhoodScorer() |
Modifier and Type | Method and Description |
---|---|
ScoredId |
score(long item,
SparseVector neighbors,
SparseVector scores)
Compute a score based on similar neighbors and their corresponding
scores.
|
String |
toString() |
public ScoredId score(long item, SparseVector neighbors, SparseVector scores)
NeighborhoodScorer
score
in interface NeighborhoodScorer
neighbors
- A vector of neighbors with similarity measures.scores
- A vector of item scores. It should contain a score for
every item in neighbors.null
if
no score could be computed.