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(java.lang.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() |
java.lang.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.
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object