public class BiasUserVectorNormalizer extends AbstractUserVectorNormalizer
User vector normalizer that subtracts user-item biases.
Constructor and Description |
---|
BiasUserVectorNormalizer(BiasModel bias)
Construct a new normalizer.
|
Modifier and Type | Method and Description |
---|---|
InvertibleFunction<Long2DoubleMap,Long2DoubleMap> |
makeTransformation(long user,
Long2DoubleMap vector)
Make a vector transformation for a user.
|
@Inject public BiasUserVectorNormalizer(BiasModel bias)
Construct a new normalizer.
bias
- The bias model to subtract from user vector values.public InvertibleFunction<Long2DoubleMap,Long2DoubleMap> makeTransformation(long user, Long2DoubleMap vector)
UserVectorNormalizer
Make a vector transformation for a user. The resulting transformation will be applied to user vectors to normalize and denormalize them.
user
- The user ID to normalize for.vector
- The user’s vector to use as the reference vector.