public class NormalizingItemItemModelBuilder extends Object implements javax.inject.Provider<ItemItemModel>
Constructor and Description |
---|
NormalizingItemItemModelBuilder(ItemSimilarity sim,
ItemItemBuildContext context,
ItemVectorNormalizer rowNorm,
VectorTruncator trunc,
NeighborIterationStrategy iterStrat)
Construct a normalizing item-item model builder.
|
@Inject public NormalizingItemItemModelBuilder(ItemSimilarity sim, ItemItemBuildContext context, ItemVectorNormalizer rowNorm, VectorTruncator trunc, NeighborIterationStrategy iterStrat)
sim
- The item similarity function.context
- The item-item build context.rowNorm
- The normalizer for item neighborhood vectors.trunc
- The truncator for truncating neighborhood vectors. Bind this to the provider
StandardVectorTruncatorProvider
to get the same threshold and model
size configuration behavior as ItemItemModelBuilder
.iterStrat
- The neighbor iteration strategy.public SimilarityMatrixModel get()
get
in interface javax.inject.Provider<ItemItemModel>