@ModelData(value={"isRanking","wrmf","userFactors","itemFactors","trainMatrix"}) public class WRMFRecommender extends MatrixFactorizationRecommender
This implementation refers to the method proposed by Hu et al. at ICDM 2008.
| Modifier and Type | Field and Description |
|---|---|
protected SparseMatrix |
confindenceMinusIdentityMatrix
confindence Minus Identity Matrix{ui} = confidenceMatrix_{ui} - 1 =alpha * r_{ui} or log(1+10^alpha * r_{ui})
|
protected SparseMatrix |
preferenceMatrix
preferenceMatrix_{ui} = 1 if
r_{ui}>0 or preferenceMatrix_{ui} = 0 |
protected float |
weightCoefficient
confidence weight coefficient
|
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 |
|---|
WRMFRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setup()
setup
init member method
|
protected void |
trainModel()
train Model
|
predict, updateLRatecleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected float weightCoefficient
protected SparseMatrix confindenceMinusIdentityMatrix
protected SparseMatrix preferenceMatrix
r_{ui}>0 or preferenceMatrix_{ui} = 0protected 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 modelCopyright © 2017. All Rights Reserved.