@ModelData(value={"isRating","nmf","transUserFactors","transItemFactors"}) public class NMFRecommender extends AbstractRecommender
| Modifier and Type | Field and Description |
|---|---|
protected int |
numFactors
the number of latent factors;
|
protected int |
numIterations
the number of iterations
|
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 |
|---|
NMFRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
predict(int userIdx,
int itemIdx)
predict a specific rating for user userIdx on item itemIdx.
|
protected void |
setup()
setup
|
protected void |
trainModel()
train Model
|
cleanup, evaluate, evaluateMap, getContext, getDataModel, getRecommendedList, isConverged, loadModel, predict, recommend, recommend, recommendRank, recommendRating, saveModel, setContextprotected int numFactors
protected int numIterations
protected void setup()
throws LibrecException
AbstractRecommendersetup in class AbstractRecommenderLibrecException - if error occurs during setupprotected void trainModel()
throws LibrecException
AbstractRecommendertrainModel in class AbstractRecommenderLibrecException - if error occurs during training modelprotected double predict(int userIdx,
int itemIdx)
throws LibrecException
predict in class AbstractRecommenderuserIdx - user indexitemIdx - item indexLibrecException - if error occursCopyright © 2017. All Rights Reserved.