项目作者: zhqwerty

项目描述 :
Matrix Factorization
高级语言: C++
项目地址: git://github.com/zhqwerty/MF-Thread.git
创建时间: 2017-05-15T02:36:41Z
项目社区:https://github.com/zhqwerty/MF-Thread

开源协议:

下载


Martrix Factorizaion Formulation

We consider the classical matrix factorization problem which can be formulated as a constrained optimizaition problem:

\min{X,Y} \ \sum_{(i,j)\in \Omega} loss(A{ij}, (XY^T){ij}) + \lambda | X|_F^2 + \lambda | Y|_F^2

We use the following three loss functions, the algorithm are based on stochastic gradient descent with learnint rate $\eta = \eta_0 / (k + 1)^{0.1}$.

Square Loss: $loss(x,y) = (x - y)^2$ with $\lambda$ = 0.1
Sigmoid Loss: $ loss(x,y) = 1 / ( 1 + exp(x, y)) $ with $\lambda = 0.01$
Square-Hinge Loss: $ loss(x,y) = (max(0, 1-xy))^2 $ with $\lambda = 0.1$

run the code:
make and ./multithread