Skip to content

Commit 7a759d9

Browse files
committedApr 16, 2016
Added files via upload
1 parent 39c9cb7 commit 7a759d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎DCF.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function [B,D,X,Y] = DCF(maxS, minS, S, ST, IDX, IDXT, r, alpha, beta, option)
2-
%DCF: Dicrete Collaborative Filtering as
2+
%DCF: Dicrete Collaborative Filtering described in Algorithm 1.
33

44
%Input:
55
%maxS: max rating score

‎DCFinit.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function [U,V,X,Y] = DCFinit(maxS, minS, S, ST, IDX, IDXT, r, alpha, beta, option)
2-
%DCFinit: Initialization for Dicrete Collaborative Filtering as in Eq.(22)
2+
%DCFinit: Initialization for Dicrete Collaborative Filtering as in Eq.(17)
33

44
%Input:
55
%maxS: max rating score

‎test.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
S = S*5;
77
S = ceil(S);
88

9-
S = sparse(S);
9+
S = sparse(S);% S should be a sparse matrix in real case.
10+
%the following transpose is a trick to accelerate sparse matrix
11+
%indexing in Matlab.
1012
ST = S';
1113
IDX = (S~=0);
1214
IDXT = IDX';

0 commit comments

Comments
 (0)
Please sign in to comment.