Changeset 70


Ignore:
Timestamp:
07/09/13 14:10:08 (11 years ago)
Author:
dtax
Message:

Maybe a bit better...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • birds/createmilbirds_19cl.m

    r68 r70  
    1414[bagid,names] = textread(fullfile(dpath,'rec_id2filename.txt'),'%n%s','headerlines',1);
    1515[bagid2,labstr] = textread(fullfile(dpath,'rec_labels_test_hidden.txt'),'%n%s','headerlines',1);
     16[bagid3,Itst] = textread(fullfile(dpath,'CVfolds_2.txt'),'%n%n',...
     17'delimiter',',','headerlines',1);
    1618
    1719
     
    7880   
    7981   if ~Itst(i)
    80       %eval(['baglab(i,[',labstr{i}(2:end),'])=1;']);
    81       %VC: in the text file, label numbers are 0 to 18, we want 1 to 19?
    8282      eval(['baglab(i,[',labstr{i}(2:end),']+1)=1;']);
    8383   end
     
    119119
    120120J = Itst(bagid);
    121 save('birds20130709.mat', 'a', 'Itst', 'J');
     121x = a(~J,:);
     122z = a(logical(J),:);
     123save('birds20130709.mat', 'a', 'x', 'z', 'Itst', 'J');
Note: See TracChangeset for help on using the changeset viewer.