Changeset 46 for hep2cells/dosimpleofficial.m
- Timestamp:
- 03/26/13 15:32:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hep2cells/dosimpleofficial.m
r44 r46 9 9 10 10 % the classifier: 11 u = loglc2; 11 %u = scalem([],'variance')*loglc2([],0.01); 12 %u = scalem([],'variance')*knnc; 12 13 u = scalem([],'variance')*liknonc; 14 %u = scalem([],'variance')*libsvc([],[],0.01); 15 %u = scalem([],'variance')*libsvc([],proxm([],'r',12),1); 13 16 14 17 % *************** … … 21 24 % test on image level: 22 25 [labout,truelab] = majorityimagevote(xtest,wtrain); 26 %[labout,truelab] = combinecells(xtest,wtrain); 23 27 acc_CI = mean(all(truelab==labout,2)); 24 28 c_CI = confmat(truelab,labout); 29 if size(c_CI,2)<size(c_CI,1), c_CI = [c_CI zeros(6,1)]; end 25 30 26 31 % ********************* … … 56 61 % test on images 57 62 [labout,truelab(i,:)] = majorityimagevote(z,w); 63 %[labout,truelab(i,:)] = combinecells(z,w); 58 64 i1 = strmatch(char(truelab(i,:)),ll); 59 65 i2 = strmatch(labout,ll); … … 64 70 65 71 dd_message(4,'\n'); 72 73 save results_liknon ll c_CC acc_CC c_CI acc_CI truelab n c_IC acc_IC c_II acc_II 66 74 67 75 % show all:
Note: See TracChangeset
for help on using the changeset viewer.