[5] | 1 |
|
---|
| 2 | W = {qdc,udc,ldc,nmc,treec,lmnc,parzenc,knnc,knnc([],1),loglc,svc,naivebc,rbnc,fdsc};
|
---|
| 3 |
|
---|
| 4 | ee.names = getname(W{1});
|
---|
| 5 | for j=2:length(W)
|
---|
| 6 | ee.names = char(ee.names,getname(W{j}));
|
---|
| 7 | end
|
---|
| 8 |
|
---|
| 9 | learnsizes = [2,5,7,10,15,20,30,50,70,100];
|
---|
| 10 |
|
---|
| 11 | iter = 25;
|
---|
| 12 | for n = 1:8
|
---|
| 13 |
|
---|
| 14 | e = zeros(length(W),length(learnsizes),iter);
|
---|
| 15 | b = genarche(W{n},1000,0);
|
---|
| 16 | for j=1:iter
|
---|
| 17 | for m = 1:length(learnsizes)
|
---|
| 18 | a = genarche(W{n},learnsizes(m),j);
|
---|
| 19 | for i=1:length(W)
|
---|
| 20 | e(i,m,j) = b*(a*W{i})*testc;
|
---|
| 21 | disp([n,j,m,i])
|
---|
| 22 | end
|
---|
| 23 | end
|
---|
| 24 | end
|
---|
| 25 |
|
---|
| 26 | ee.error = mean(e,3);
|
---|
| 27 | ee.xvalues = learnsizes;
|
---|
| 28 | ee.std = std(e,[],3)/sqrt(iter);
|
---|
| 29 | plotr(ee,[],[],[],'errorbar')
|
---|
| 30 | save(['arche_' getmapping_file(W{n})],'ee','iter');
|
---|
| 31 |
|
---|
| 32 | end
|
---|
| 33 |
|
---|