public abstract class ProbabilisticGraphicalRecommender extends AbstractRecommender
Modifier and Type | Field and Description |
---|---|
protected int |
burnIn
burn-in period
|
protected int |
numItems
the number of items
|
protected int |
numIterations
the number of iterations
|
protected int |
numStats
size of statistics
|
protected int |
numUsers
the number of users
|
protected int |
sampleLag
sample lag (if -1 only one sample taken)
|
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 |
---|
ProbabilisticGraphicalRecommender() |
Modifier and Type | Method and Description |
---|---|
protected abstract 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 abstract void |
mStep()
update the hyper-parameters
|
protected void |
readoutParams()
read out parameters for each iteration
|
protected void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
cleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, loadModel, predict, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContext
protected int numUsers
protected int numItems
protected int numIterations
protected int burnIn
protected int numStats
protected int sampleLag
protected void setup() throws LibrecException
setup
in class AbstractRecommender
LibrecException
- if error occurs during setting upprotected void trainModel() throws LibrecException
AbstractRecommender
trainModel
in class AbstractRecommender
LibrecException
- if error occurs during training modelprotected boolean isConverged(int iter)
AbstractRecommender
isConverged
in class AbstractRecommender
iter
- current iterationprotected abstract void eStep()
protected abstract void mStep()
protected void readoutParams()
protected void estimateParams()
Copyright © 2017. All Rights Reserved.