Commit 5f91eef2 authored by Giovanne Marcelo's avatar Giovanne Marcelo

add pseudocode

parent 0e5cd366
Pipeline #6350 passed with stage
in 4 minutes and 50 seconds
#ifndef _ALGORITHM_H
#define _ALGORITHM_H
#include "matrix.h"
void perform();
#endif
/*
* Implementation of a recommender algorithm
*
* Implementation of a recommender algorithm with ccd++ factorization
* http://www.cs.utexas.edu/~cjhsieh/icdm-pmf.pdf
* This source code is licensed under the GNU General Public License,
* Version 3. See the file LICENSE for more details.
*
......@@ -8,6 +8,44 @@
#include "algorithm.h"
/* CCD
* Input: Initial R = A, W = 0, H, λ, and k
* for iter = 1, 2, . . . , T do
* for i = 1, 2, . . . , m do
* for t = 1, 2, . . . , k do
* Obtain z∗ using (6).
* Update R and wit using (7) and (8).
* end for
* end for
*
* for j = 1, 2, . . . , n do
* for t = 1, 2, . . . , k do
* Obtain s∗ using (12).
* Update R and hjt using (9) and (10).
* end for
* end for
* end for
*/
void ccd(matrix R, matrix W, matrix H, double lamb, int k) {
}
/*
* CCD++
* Input: Initial R = A, W = 0, H, λ, and k
* for iter = 1, 2, . . . do
* for t = 1, 2, . . . , k do
* Get (u, v) using T CCD iterations for (16).
* Update R and (w¯t, h¯t) using (17) and (18).
* end for
* end for
*/
void ccd_pp(matrix R, matrix W, matrix H, double lamb, int k) {
}
void perform() {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment