public class MostPopularRecommender extends AbstractRecommender
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 |
|---|
MostPopularRecommender() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
predict(int userIdx,
int itemIdx)
The rated count as the predictive ranking score 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 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 occurs during predictingCopyright © 2017. All Rights Reserved.