@ModelData(value={"isRanking","fismrmse","P","Q","itemBiases","userBiases"}) public class FISMaucRecommender 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>> |
userItemsCache
user-items cache, item-users cache
|
initMean, initStd, itemFactors, learnRate, maxLearnRate, numFactors, numIterations, regItem, regUser, userFactors
conf, 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 |
---|
FISMaucRecommender() |
Modifier and Type | Method and Description |
---|---|
protected double |
predict(int u,
int j)
predict a specific rating for user userIdx on item itemIdx.
|
protected void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
updateLRate
cleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContext
protected com.google.common.cache.LoadingCache<java.lang.Integer,java.util.List<java.lang.Integer>> userItemsCache
protected static java.lang.String cacheSpec
protected void setup() throws LibrecException
MatrixFactorizationRecommender
setup
in class MatrixFactorizationRecommender
LibrecException
- if error occurs during setting upprotected void trainModel() throws LibrecException
AbstractRecommender
trainModel
in class AbstractRecommender
LibrecException
- if error occurs during training modelprotected double predict(int u, int j) throws LibrecException
MatrixFactorizationRecommender
predict
in class MatrixFactorizationRecommender
u
- user indexj
- item indexLibrecException
- if error occurs during predictingCopyright © 2017. All Rights Reserved.