Mercurial > hg > aasp-d-case-metrics
view scene_classification/loadClassificationOutput.m @ 5:1f977a3aab1a
overall confusion matrix: check for rowsum equality; and format cm as rounded percentages
author | Dan Stowell <dan.stowell@elec.qmul.ac.uk> |
---|---|
date | Mon, 13 May 2013 14:42:31 +0100 |
parents | dcaf371d33e3 |
children |
line wrap: on
line source
function [fileID,classID] = loadClassificationOutput(filename) % Open raw file fid = fopen(filename,'r'); % Read 1st line tline = fgetl(fid); fileID{1} = char(sscanf(tline, '%s\t%*s')); classID{1} = char(sscanf(tline, '%*s\t%s')); % Read rest of the lines i=1; while ischar(tline) i = i+1; tline = fgetl(fid); if (ischar(tline)) fileID{i} = char(sscanf(tline, '%s\t%*s')); classID{i} = char(sscanf(tline, '%*s\t%s')); end; end % Close file fclose(fid);