Changeset 70
- Timestamp:
- 07/09/13 14:10:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
birds/createmilbirds_19cl.m
r68 r70 14 14 [bagid,names] = textread(fullfile(dpath,'rec_id2filename.txt'),'%n%s','headerlines',1); 15 15 [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); 16 18 17 19 … … 78 80 79 81 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?82 82 eval(['baglab(i,[',labstr{i}(2:end),']+1)=1;']); 83 83 end … … 119 119 120 120 J = Itst(bagid); 121 save('birds20130709.mat', 'a', 'Itst', 'J'); 121 x = a(~J,:); 122 z = a(logical(J),:); 123 save('birds20130709.mat', 'a', 'x', 'z', 'Itst', 'J');
Note: See TracChangeset
for help on using the changeset viewer.