public class NormalizingItemItemModelProvider extends java.lang.Object implements javax.inject.Provider<ItemItemModel>
Build an item-item CF model from rating data. This builder is more advanced than the standard builder. It allows arbitrary vector truncation and normalization.
Constructor and Description |
---|
NormalizingItemItemModelProvider(ItemSimilarity sim,
ItemItemBuildContext context,
ItemVectorNormalizer rowNorm,
VectorTruncator trunc,
NeighborIterationStrategy iterStrat)
Construct a normalizing item-item model builder.
|
Modifier and Type | Method and Description |
---|---|
SimilarityMatrixModel |
get() |
java.lang.String |
toString() |
@Inject public NormalizingItemItemModelProvider(ItemSimilarity sim, ItemItemBuildContext context, ItemVectorNormalizer rowNorm, VectorTruncator trunc, NeighborIterationStrategy iterStrat)
Construct a normalizing item-item model builder.
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 ItemItemModelProvider
.iterStrat
- The neighbor iteration strategy.public SimilarityMatrixModel get()
get
in interface javax.inject.Provider<ItemItemModel>
public java.lang.String toString()
toString
in class java.lang.Object