@Shareable @Immutable public class DomainClampingKernel extends Object implements BiasedMFKernel, Serializable
Constructor and Description |
---|
DomainClampingKernel(PreferenceDomain dom) |
Modifier and Type | Method and Description |
---|---|
double |
apply(double bias,
mikera.vectorz.AVector user,
mikera.vectorz.AVector item)
Apply the kernel function.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
@Inject public DomainClampingKernel(PreferenceDomain dom)
public double apply(double bias, @Nonnull mikera.vectorz.AVector user, @Nonnull mikera.vectorz.AVector item)
BiasedMFKernel
apply
in interface BiasedMFKernel
bias
- The combined user-item bias term (the baseline score, usually).user
- The user-factor vector.item
- The item-factor vector.