public class ItemItemResult extends AbstractResult
The result type for item-item collaborative filtering.
id, score| Constructor and Description |
|---|
ItemItemResult(long item,
double score,
int nnbrs,
double weight)
Construct a new item-item CF result.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getNeighborhoodSize()
Get the number of neighbors used to score this item.
|
double |
getNeighborWeight()
Get the total weight of the neighborhood.
|
int |
hashCode() |
String |
toString() |
as, getId, getKey, getScore, hasScore, startEquality, startEquality, startHashCode, startHashCodepublic ItemItemResult(long item,
double score,
int nnbrs,
double weight)
Construct a new item-item CF result.
item - The item ID.score - The score.nnbrs - The neighborhood size.public int getNeighborhoodSize()
Get the number of neighbors used to score this item.
public double getNeighborWeight()
Get the total weight of the neighborhood.