@DefaultProvider(value=SlopeOneModelBuilder.class) @Shareable public class SlopeOneModel extends Object implements Serializable
SlopeOneItemScorer
or WeightedSlopeOneItemScorer
.
Stores calculated deviation values and number of co-rating users for each item pair.Modifier and Type | Field and Description |
---|---|
static Symbol |
CORATINGS_SYMBOL |
Constructor and Description |
---|
SlopeOneModel(Long2ObjectMap<ImmutableSparseVector> matrix) |
Modifier and Type | Method and Description |
---|---|
int |
getCoratings(long item1,
long item2) |
double |
getDeviation(long item1,
long item2) |
public static final Symbol CORATINGS_SYMBOL
public SlopeOneModel(Long2ObjectMap<ImmutableSparseVector> matrix)