@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, socialMatrix
initMean, initStd, itemFactors, learnRate, maxLearnRate, numFactors, numIterations, regItem, regUser, userFactors
conf, 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, normalize
predict, updateLRate
cleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, recommend, recommend, recommendRank, recommendRating, saveModel, setContext
public void setup() throws LibrecException
MatrixFactorizationRecommender
setup
in class SocialRecommender
LibrecException
- if error occurs during setting upprotected void trainModel() throws LibrecException
AbstractRecommender
trainModel
in class AbstractRecommender
LibrecException
- if error occurs during training modelprotected double predict(int userIdx, int itemIdx, boolean bound) throws LibrecException
predict
in class SocialRecommender
userIdx
- user indexitemIdx
- item indexbound
- whether there is a boundLibrecException
- if error occurs during predictingCopyright © 2017. All Rights Reserved.