public class SlopeOneModelProvider extends 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(ItemDAO dao,
ItemItemBuildContext context,
double damping) |
Modifier and Type | Method and Description |
---|---|
SlopeOneModel |
get()
Constructs and returns a
SlopeOneModel . |
@Inject public SlopeOneModelProvider(@Nonnull ItemDAO dao, ItemItemBuildContext context, @DeviationDamping double damping)
public SlopeOneModel get()
Constructs and returns a SlopeOneModel
.
get
in interface javax.inject.Provider<SlopeOneModel>