- Timestamp:
- 03/08/13 15:17:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hep2cells/dosimpleofficial.m
r42 r44 1 1 % Train on individual cells, 2 2 % evaluate on individual cells 3 clear all; 3 clear all; addpath ~/matlab/ideas/hep2cells; 4 4 load cellssimple_rotinv.mat 5 5 xtrain = a; xtest = b; a = [a;b]; … … 67 67 % show all: 68 68 showconfmat(c_CC,ll); 69 fprintf('Train:Cell Test:cell % f\n',acc_CC);69 fprintf('Train:Cell Test:cell %3.1f%% correct\n',100*acc_CC); 70 70 showconfmat(c_CI,ll); 71 fprintf('Train:Cell Test:image % f\n',acc_CI);71 fprintf('Train:Cell Test:image %3.1f%% correct\n',100*acc_CI); 72 72 fprintf('*************************************************************\n'); 73 73 for i=1:28 74 fprintf('Image % 02d:%s %d %f\n',i,truelab(i,:),n(i,1),n(i,2));74 fprintf('Image %2d:%s %3d %3.1f%%\n',i,truelab(i,:),n(i,1),100*n(i,2)); 75 75 end 76 76 showconfmat(c_IC,ll); 77 fprintf('Train:Image Test:cell %f\n',acc_IC);77 fprintf('Train:Image Test:cell %3.1f%% correct\n',100*acc_IC); 78 78 showconfmat(c_II,ll); 79 fprintf('Train:Image Test:image %f\n',acc_II);79 fprintf('Train:Image Test:image %3.1f%% correct\n',100*acc_II); 80 80
Note: See TracChangeset
for help on using the changeset viewer.