public class SlopeOneModelProvider extends java.lang.Object implements javax.inject.Provider<SlopeOneModel>
Pre-computes the deviations and number of mutual rating users for every pair of items and stores the results in a DeviationMatrix
and CoratingMatrix
. These matrices are later used by a SlopeOneItemScorer
.
Constructor and Description |
---|
SlopeOneModelProvider(ItemItemBuildContext context,
double damping) |
Modifier and Type | Method and Description |
---|---|
SlopeOneModel |
get()
Constructs and returns a
SlopeOneModel . |
@Inject public SlopeOneModelProvider(ItemItemBuildContext context, @DeviationDamping double damping)
public SlopeOneModel get()
Constructs and returns a SlopeOneModel
.
get
in interface javax.inject.Provider<SlopeOneModel>