public class BUCMRecommender extends ProbabilisticGraphicalRecommender
Thank the paper authors for providing source code and for having valuable discussion.
Modifier and Type | Field and Description |
---|---|
protected int |
numRatingLevels |
protected int |
numTopics
number of topics
|
protected com.google.common.collect.Table<java.lang.Integer,java.lang.Integer,java.lang.Integer> |
topics |
burnIn, numItems, numIterations, numStats, numUsers, sampleLag
conf, context, decay, earlyStop, globalMean, isBoldDriver, isRanking, itemMappingData, lastLoss, LOG, loss, maxRate, minRate, numRates, ratingScale, recommendedList, testMatrix, topN, trainMatrix, userMappingData, validMatrix, verbose
Constructor and Description |
---|
BUCMRecommender() |
Modifier and Type | Method and Description |
---|---|
protected void |
eStep()
parameters estimation: used in the training phase
|
protected void |
estimateParams()
estimate the model parameters
|
protected boolean |
isConverged(int iter)
Post each iteration, we do things:
print debug information
check if converged
if not, adjust learning rate
|
protected void |
mStep()
Thomas P.
|
protected double |
perplexity(int u,
int j,
double ruj) |
protected double |
predict(int userIdx,
int itemIdx)
predict a specific rating for user userIdx on item itemIdx, note that the
prediction is not bounded.
|
protected double |
predictRanking(int userIdx,
int itemIdx) |
protected double |
predictRating(int userIdx,
int itemIdx) |
protected void |
readoutParams()
read out parameters for each iteration
|
protected void |
setup()
setup
init member method
|
trainModel
cleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContext
protected com.google.common.collect.Table<java.lang.Integer,java.lang.Integer,java.lang.Integer> topics
protected int numTopics
protected int numRatingLevels
protected void setup() throws LibrecException
ProbabilisticGraphicalRecommender
setup
in class ProbabilisticGraphicalRecommender
LibrecException
- if error occurs during setting upprotected void eStep()
ProbabilisticGraphicalRecommender
eStep
in class ProbabilisticGraphicalRecommender
protected void mStep()
mStep
in class ProbabilisticGraphicalRecommender
protected boolean isConverged(int iter)
AbstractRecommender
isConverged
in class ProbabilisticGraphicalRecommender
iter
- current iterationprotected void readoutParams()
ProbabilisticGraphicalRecommender
readoutParams
in class ProbabilisticGraphicalRecommender
protected void estimateParams()
ProbabilisticGraphicalRecommender
estimateParams
in class ProbabilisticGraphicalRecommender
protected double perplexity(int u, int j, double ruj) throws java.lang.Exception
java.lang.Exception
protected double predict(int userIdx, int itemIdx) throws LibrecException
AbstractRecommender
predict
in class AbstractRecommender
userIdx
- user indexitemIdx
- item indexLibrecException
- if error occurs during predictingprotected double predictRating(int userIdx, int itemIdx)
protected double predictRanking(int userIdx, int itemIdx)
Copyright © 2017. All Rights Reserved.