@DefaultImplementation(value=DotProductKernel.class) public interface BiasedMFKernel
Note that not all kernels are compatible with all model build strategies.
Kernels should be serializable and shareable.
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double bias,
mikera.vectorz.AVector user,
mikera.vectorz.AVector item)
Apply the kernel function.
|
double apply(double bias,
@Nonnull
mikera.vectorz.AVector user,
@Nonnull
mikera.vectorz.AVector item)
bias - The combined user-item bias term (the baseline score, usually).user - The user-factor vector.item - The item-factor vector.IllegalArgumentException - if the user and item vectors have different lengths.