@ModelData(value={"isRating","soreg","userFactors","itemFactors"}) public class SoRegRecommender extends SocialRecommender
In the original paper, this method is named as "SR2_pcc". For consistency, we rename it as "SoReg" as used by some other papers such as: Tang et al., Exploiting Local and Global Social Context for Recommendation, IJCAI 2013.
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 |
|---|
SoRegRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
predict(int userIdx,
int itemIdx,
boolean bound)
predict a specific rating for user userIdx on item itemIdx.
|
void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
denormalize, normalizepredict, updateLRatecleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, recommend, recommend, recommendRank, recommendRating, saveModel, setContextpublic 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,
boolean bound)
throws LibrecException
predict in class SocialRecommenderuserIdx - user indexitemIdx - item indexbound - whether there is a boundLibrecException - if error occurs during predictingCopyright © 2017. All Rights Reserved.