public class BaselineSubtractingUserVectorNormalizer extends AbstractUserVectorNormalizer
User vector normalizer that subtracts a user’s baseline scores.
| Modifier and Type | Field and Description |
|---|---|
protected ItemScorer |
baselineScorer |
| Constructor and Description |
|---|
BaselineSubtractingUserVectorNormalizer(ItemScorer baseline)
Create a new baseline-subtracting normalizer with the given baseline.
|
| Modifier and Type | Method and Description |
|---|---|
InvertibleFunction<Long2DoubleMap,Long2DoubleMap> |
makeTransformation(long user,
Long2DoubleMap vector)
Make a vector transformation for a user.
|
java.lang.String |
toString() |
protected final ItemScorer baselineScorer
@Inject public BaselineSubtractingUserVectorNormalizer(@BaselineScorer ItemScorer baseline)
Create a new baseline-subtracting normalizer with the given baseline.
baseline - The baseline scorer to use for normalization.public InvertibleFunction<Long2DoubleMap,Long2DoubleMap> makeTransformation(long user, Long2DoubleMap vector)
UserVectorNormalizerMake 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.public java.lang.String toString()
toString in class java.lang.Object