@ModelData(value={"isRanking","gbpr","userFactors","itemFactors","trainMatrix"}) public class GBPRRecommender extends MatrixFactorizationRecommender
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
cacheSpec
Guava cache configuration
|
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> |
itemUsersCache
user-items cache, item-users cache
|
protected double |
regBias
bias regularization
|
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> |
userItemsCache
user-items cache, item-users cache
|
initMean, initStd, itemFactors, learnRate, maxLearnRate, numFactors, numIterations, regItem, regUser, userFactorsconf, 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 |
|---|
GBPRRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
predict(int userIdx,
int itemIdx)
predict a specific rating for user userIdx on item itemIdx.
|
protected double |
predict(int userIdx,
int itemIdx,
java.util.Set<java.lang.Integer> groupSet) |
protected void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
updateLRatecleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected double regBias
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> userItemsCache
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> itemUsersCache
protected static java.lang.String cacheSpec
protected void setup()
throws LibrecException
MatrixFactorizationRecommendersetup in class MatrixFactorizationRecommenderLibrecException - if error occurs during setting upprotected void trainModel()
throws LibrecException
AbstractRecommendertrainModel in class AbstractRecommenderLibrecException - if error occurs during training modelprotected double predict(int userIdx,
int itemIdx,
java.util.Set<java.lang.Integer> groupSet)
throws LibrecException
LibrecExceptionprotected double predict(int userIdx,
int itemIdx)
MatrixFactorizationRecommenderpredict in class MatrixFactorizationRecommenderuserIdx - user indexitemIdx - item indexCopyright © 2017. All Rights Reserved.