C# Class MyMediaLite.ItemRecommendation.SoftMarginRankingMF

Matrix factorization model for item prediction optimized for a soft margin (hinge) ranking loss, using stochastic gradient descent (as in BPR-MF).
Literature: Steffen Rendle: Context-Aware Ranking with Factorization Models. Studies in Computational Intelligence. Springer 2011. http://www.springer.com/engineering/computational+intelligence+and+complexity/book/978-3-642-16897-0 Markus Weimer, Alexandros Karatzoglou, Alex Smola: Improving Maximum Margin Matrix Factorization. Machine Learning Journal 2008. Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, Lars Schmidt-Thieme: BPR: Bayesian Personalized Ranking from Implicit Feedback. UAI 2009. http://www.ismll.uni-hildesheim.de/pub/pdfs/Rendle_et_al2009-Bayesian_Personalized_Ranking.pdf This recommender supports incremental updates.
Inheritance: BPRMF
Exibir arquivo Open project: zenogantner/MyMediaLite Class Usage Examples

Public Methods

Method Description
ComputeObjective ( ) : float

Compute approximate loss

SoftMarginRankingMF ( ) : System
ToString ( ) : string

Protected Methods

Method Description
UpdateFactors ( int u, int i, int j, bool update_u, bool update_i, bool update_j ) : void

Update latent factors according to the stochastic gradient descent update rule

Method Details

ComputeObjective() public method

Compute approximate loss
public ComputeObjective ( ) : float
return float

SoftMarginRankingMF() public method

public SoftMarginRankingMF ( ) : System
return System

ToString() public method

public ToString ( ) : string
return string

UpdateFactors() protected method

Update latent factors according to the stochastic gradient descent update rule
protected UpdateFactors ( int u, int i, int j, bool update_u, bool update_i, bool update_j ) : void
u int the user ID
i int the ID of the first item
j int the ID of the second item
update_u bool if true, update the user latent factors
update_i bool if true, update the latent factors of the first item
update_j bool if true, update the latent factors of the second item
return void