@Shareable public class WeightedAverageNeighborhoodScorer extends Object implements NeighborhoodScorer, Serializable
| Modifier and Type | Field and Description |
|---|---|
static Symbol |
NEIGHBORHOOD_WEIGHT_SYMBOL |
| Constructor and Description |
|---|
WeightedAverageNeighborhoodScorer() |
| 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 static final Symbol NEIGHBORHOOD_WEIGHT_SYMBOL
public ScoredId score(long item, SparseVector neighbors, SparseVector scores)
NeighborhoodScorerscore in interface NeighborhoodScorerneighbors - 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.