public class ItemwiseBuildContextProvider extends Object implements javax.inject.Provider<ItemItemBuildContext>
Builder for ItemItemBuildContext
that normalizes per-item, not per-user. More efficient when using e.g. item-based normalization. Right now it only works for rating data.
Constructor and Description |
---|
ItemwiseBuildContextProvider(ItemEventDAO edao,
ItemDAO idao,
ItemVectorNormalizer norm)
Construct a new build context provider.
|
Modifier and Type | Method and Description |
---|---|
ItemItemBuildContext |
get()
Constructs and returns a new ItemItemBuildContext.
|
@Inject public ItemwiseBuildContextProvider(ItemEventDAO edao, ItemDAO idao, ItemVectorNormalizer norm)
Construct a new build context provider.
edao
- The item-event DAO.idao
- The item DAO.norm
- The item vector normalizer. This is applied to item rating vectors. You should take care to use a compatible normalizer for the item scorer (e.g. if this uses a MeanCenteringVectorNormalizer
, then you should use ItemMeanRatingItemScorer
for the user vector normalization in the scorer).public ItemItemBuildContext get()
Constructs and returns a new ItemItemBuildContext.
get
in interface javax.inject.Provider<ItemItemBuildContext>