public class GPLSARecommender extends ProbabilisticGraphicalRecommender
Tempered EM: Thomas Hofmann, Unsupervised Learning by Probabilistic Latent Semantic Analysis, Machine Learning, 42, 177�C196, 2001.
| Modifier and Type | Field and Description |
|---|---|
protected float |
b |
protected int |
numTopics |
protected com.google.common.collect.Table<java.lang.Integer,java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> |
Q |
protected static double |
smallValue |
protected float |
smoothWeight |
protected DenseMatrix |
topicItemMu |
protected DenseMatrix |
topicItemSigma |
protected DenseVector |
userMu |
protected DenseVector |
userSigma |
protected DenseMatrix |
userTopicProbs |
burnIn, numItems, numIterations, numStats, numUsers, sampleLagconf, context, decay, earlyStop, globalMean, isBoldDriver, isRanking, itemMappingData, lastLoss, LOG, loss, maxRate, minRate, numRates, ratingScale, recommendedList, testMatrix, topN, trainMatrix, userMappingData, validMatrix, verbose| Constructor and Description |
|---|
GPLSARecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
eStep()
parameters estimation: used in the training phase
|
protected void |
mStep()
update the hyper-parameters
|
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 |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
estimateParams, isConverged, readoutParamscleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected int numTopics
protected com.google.common.collect.Table<java.lang.Integer,java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Double>> Q
protected DenseMatrix userTopicProbs
protected DenseMatrix topicItemMu
protected DenseMatrix topicItemSigma
protected DenseVector userMu
protected DenseVector userSigma
protected float smoothWeight
protected float b
protected static double smallValue
protected void setup()
throws LibrecException
ProbabilisticGraphicalRecommendersetup in class ProbabilisticGraphicalRecommenderLibrecException - if error occurs during setting upprotected void trainModel()
throws LibrecException
AbstractRecommendertrainModel in class ProbabilisticGraphicalRecommenderLibrecException - if error occurs during training modelprotected void eStep()
ProbabilisticGraphicalRecommendereStep in class ProbabilisticGraphicalRecommenderprotected void mStep()
ProbabilisticGraphicalRecommendermStep in class ProbabilisticGraphicalRecommenderprotected double predict(int userIdx,
int itemIdx)
throws LibrecException
AbstractRecommenderpredict in class AbstractRecommenderuserIdx - user indexitemIdx - item indexLibrecException - if error occurs during predictingCopyright © 2017. All Rights Reserved.