@ModelData(value={"isRanking","sbpr","userFactors","itemFactors","itemBiases"}) public class SBPRRecommender extends SocialRecommender
Zhao et al., Leveraging Social Connections to Improve Personalized Ranking for Collaborative Filtering, CIKM 2014.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
cacheSpec
Guava cache configuration
|
protected float |
regBias
bias regularization
|
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> |
userItemsCache
user-items cache, item-users cache
|
regSocial, socialMatrixinitMean, initStd, itemFactors, learnRate, maxLearnRate, numFactors, numIterations, regItem, regUser, userFactorsconf, context, decay, earlyStop, globalMean, isBoldDriver, isRanking, itemMappingData, lastLoss, LOG, loss, maxRate, minRate, numItems, numRates, numUsers, ratingScale, recommendedList, testMatrix, topN, trainMatrix, userMappingData, validMatrix, verbose| Constructor and Description |
|---|
SBPRRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
predict(int userIdx,
int itemIdx)
predict a specific ranking score for user userIdx on item itemIdx.
|
void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
denormalize, normalize, predictupdateLRatecleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected float regBias
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> userItemsCache
protected static java.lang.String cacheSpec
public void setup()
throws LibrecException
MatrixFactorizationRecommendersetup in class SocialRecommenderLibrecException - if error occurs during setting upprotected void trainModel()
throws LibrecException
AbstractRecommendertrainModel in class AbstractRecommenderLibrecException - if error occurs during training modelprotected double predict(int userIdx,
int itemIdx)
throws LibrecException
predict in class MatrixFactorizationRecommenderuserIdx - user indexitemIdx - item indexLibrecException - if error occursCopyright © 2017. All Rights Reserved.