-
Notifications
You must be signed in to change notification settings - Fork 0
/
getGoodMethod_RPCA2_YaleB.m
45 lines (43 loc) · 1.03 KB
/
getGoodMethod_RPCA2_YaleB.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
clc
clear
% load('evaluateGoodMethodRPCA_Yale.mat')
% Yale= []
load('evaluateGoodMethodRPCA_YaleB.mat')
YaleB= []
% load('evaluateGoodMethodRPCA_YaleB2.mat')
% YaleB2= []
% load('evaluateGoodMethodRPCA_YaleB3.mat')
% YaleB3= []
% load('evaluateGoodMethodRPCA_ORL.mat')
% ORL= []
C= []
for i=1:length(numID)
if(MIhat_Diff(i, 1)>MIhat_Original(i, 1))
if(AC_Diff(i, 1)>AC_Original(i, 1))
C=[i, methodName1_2(1,i), AC_Diff(i, 1), AC_Original(i, 1), MIhat_Diff(i, 1), MIhat_Original(i, 1)]
% Yale= [Yale; C]
YaleB= [YaleB; C]
C=[]
end
end
end
% D=[]
% for j=1: size(A, 1)
% x=A(j, 1)/27
% x=round(x)+1
% y=mod(A(j, 1), 27)
% D=[D; [x, y]]
% end
% dex=D(:,1)
% dey=D(:,2)
% goodMethod_RPCA=[]
% for k=A
% goodMethod_RPCA=[goodMethod_RPCA; methodName1_2(1, k)]
% end
% goodMethod_RPCA=goodMethod_RPCA'
%
% save('goodMethod_RPCA', 'goodMethod_RPCA')
% save('goodMethod_RPCA_dataset', 'Yale', '-append')
save('goodMethod_RPCA_dataset', 'YaleB', '-append')
clc
clear