@Immutable @Shareable public class SimilaritySumUserNeighborhoodScorer extends java.lang.Object implements UserNeighborhoodScorer, java.io.Serializable
Score an item using the weighted average of neighbor ratings.
| Constructor and Description | 
|---|
| SimilaritySumUserNeighborhoodScorer(int min)Construct a weighted average scorer. | 
| Modifier and Type | Method and Description | 
|---|---|
| UserUserResult | score(long item,
     java.util.List<Neighbor> neighbors)Compute the score for an item given a list of neighbors. | 
@Inject public SimilaritySumUserNeighborhoodScorer(@MinNeighbors int min)
Construct a weighted average scorer.
min - The minimum neighbors.@Nullable public UserUserResult score(long item, java.util.List<Neighbor> neighbors)
UserNeighborhoodScorerCompute the score for an item given a list of neighbors.
score in interface UserNeighborhoodScoreritem - The item to score.neighbors - The list of neighbors.null.