public class LDCCRecommender extends ProbabilisticGraphicalRecommender
burnIn, numItems, numIterations, numUsers, sampleLagconf, context, decay, earlyStop, globalMean, isBoldDriver, isRanking, itemMappingData, lastLoss, LOG, maxRate, minRate, numRates, recommendedList, testMatrix, topN, trainMatrix, userMappingData, validMatrix, verbose| Constructor and Description |
|---|
LDCCRecommender() |
| 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()
update the hyper-parameters
|
protected double |
perplexity(int user,
int item,
double rating) |
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 void |
readoutParams()
read out parameters for each iteration
|
protected void |
setup()
setup
init member method
|
trainModelcleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected void setup()
throws LibrecException
ProbabilisticGraphicalRecommendersetup in class ProbabilisticGraphicalRecommenderLibrecException - if error occurs during setting upprotected void eStep()
ProbabilisticGraphicalRecommendereStep in class ProbabilisticGraphicalRecommenderprotected void mStep()
ProbabilisticGraphicalRecommendermStep in class ProbabilisticGraphicalRecommenderprotected void readoutParams()
ProbabilisticGraphicalRecommenderreadoutParams in class ProbabilisticGraphicalRecommenderprotected void estimateParams()
estimateParams in class ProbabilisticGraphicalRecommenderprotected double predict(int userIdx,
int itemIdx)
throws LibrecException
AbstractRecommenderpredict in class AbstractRecommenderuserIdx - user indexitemIdx - item indexLibrecException - if error occurs during predictingprotected boolean isConverged(int iter)
AbstractRecommenderisConverged in class ProbabilisticGraphicalRecommenderiter - current iterationprotected double perplexity(int user,
int item,
double rating)
Copyright © 2017. All Rights Reserved.