|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.itemrec.ItemRecommender
org.mymedialite.itemrec.IncrementalItemRecommender
org.mymedialite.itemrec.MF
org.mymedialite.itemrec.BPRMF
org.mymedialite.itemrec.WeightedBPRMF
public class WeightedBPRMF
Weighted BPR-MF with frequency-adjusted sampling. Literature: Zeno Gantner, Lucas Drumond, Christoph Freudenthaler, Lars Schmidt-Thieme: Bayesian Personalized Ranking for Non-Uniformly Sampled Items. KDD Cup Workshop 2011
Field Summary | |
---|---|
protected int[] |
items
array of item IDs of positive user-item pairs. |
protected int[] |
users
array of user IDs of positive user-item pairs. |
Fields inherited from class org.mymedialite.itemrec.BPRMF |
---|
biasReg, boldDriver, fastSampling, fastSamplingMemoryLimit, itemBias, learnRate, random, regI, regJ, regU, uniformUserSampling, updateJ, userNegItems, userPosItems, withReplacement |
Fields inherited from class org.mymedialite.itemrec.MF |
---|
initMean, initStDev, itemFactors, numFactors, numIter, userFactors |
Fields inherited from class org.mymedialite.itemrec.ItemRecommender |
---|
feedback, maxItemID, maxUserID |
Constructor Summary | |
---|---|
WeightedBPRMF()
Default constructor. |
Method Summary | |
---|---|
protected void |
sampleTriple(org.mymedialite.itemrec.WeightedBPRMF.SampleTriple t)
|
java.lang.String |
toString()
Return a string representation of the recommender |
void |
train()
{ @inheritDoc } |
Methods inherited from class org.mymedialite.itemrec.BPRMF |
---|
addFeedback, addItem, addUser, checkSampling, computeFit, computeLoss, createFastSamplingData, initModel, iterate, loadModel, loadModel, predict, removeFeedback, removeItem, removeUser, retrainItem, retrainUser, sampleItemPair, sampleOtherItem, sampleTriple, sampleUser, saveModel, saveModel, updateFactors |
Methods inherited from class org.mymedialite.itemrec.MF |
---|
getItemFactors, getNumIter, getUserFactors, setNumIter |
Methods inherited from class org.mymedialite.itemrec.ItemRecommender |
---|
canPredict, clone, getFeedback, setFeedback |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mymedialite.IRecommender |
---|
canPredict |
Field Detail |
---|
protected int[] users
protected int[] items
Constructor Detail |
---|
public WeightedBPRMF()
Method Detail |
---|
public void train()
BPRMF
train
in interface IRecommender
train
in class BPRMF
protected void sampleTriple(org.mymedialite.itemrec.WeightedBPRMF.SampleTriple t)
public java.lang.String toString()
IRecommender
toString
in interface IRecommender
toString
in class BPRMF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |