@Shareable @Immutable public class DomainClampingKernel extends java.lang.Object implements BiasedMFKernel, java.io.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(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
@Inject public DomainClampingKernel(PreferenceDomain dom)
public double apply(double bias,
@Nonnull
mikera.vectorz.AVector user,
@Nonnull
mikera.vectorz.AVector item)
BiasedMFKernelapply in interface BiasedMFKernelbias - The combined user-item bias term (the baseline score, usually).user - The user-factor vector.item - The item-factor vector.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object