@DefaultProvider(value=FunkSVDModelProvider.class) @Shareable public final class FunkSVDModel extends MFModel
Model for FunkSVD recommendation. This extends the SVD model with clamping functions and information about the training of the features.
featureCount, itemCount, itemIndex, itemMatrix, userCount, userIndex, userMatrix| Constructor and Description |
|---|
FunkSVDModel(org.apache.commons.math3.linear.RealMatrix umat,
org.apache.commons.math3.linear.RealMatrix imat,
org.lenskit.util.keys.KeyIndex uidx,
org.lenskit.util.keys.KeyIndex iidx,
List<FeatureInfo> features) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.math3.linear.RealVector |
getAverageUserVector() |
List<FeatureInfo> |
getFeatureInfo()
Get the metadata about all features.
|
FeatureInfo |
getFeatureInfo(int f)
Get the
FeatureInfo for a particular feature. |
getFeatureCount, getItemCount, getItemFeature, getItemIndex, getItemMatrix, getItemVector, getUserCount, getUserFeature, getUserIndex, getUserMatrix, getUserVector, toStringpublic FunkSVDModel(org.apache.commons.math3.linear.RealMatrix umat,
org.apache.commons.math3.linear.RealMatrix imat,
org.lenskit.util.keys.KeyIndex uidx,
org.lenskit.util.keys.KeyIndex iidx,
List<FeatureInfo> features)
public FeatureInfo getFeatureInfo(int f)
Get the FeatureInfo for a particular feature.
f - The feature number.public List<FeatureInfo> getFeatureInfo()
Get the metadata about all features.
public org.apache.commons.math3.linear.RealVector getAverageUserVector()