comparison phase2/treeLinkFeatures.m @ 15:0718e03cb36d

update runme for phase 2
author DaveM
date Wed, 15 Feb 2017 11:07:32 +0000
parents d0bd98e7b6c9
children 4a8ec6c461a0
comparison
equal deleted inserted replaced
14:b95cee067fdd 15:0718e03cb36d
12 % linkList(:,4) = 0; 12 % linkList(:,4) = 0;
13 featureList = cell(listSize-1,1); 13 featureList = cell(listSize-1,1);
14 currentRow = [2*listSize-1]; 14 currentRow = [2*listSize-1];
15 15
16 %% 16 %%
17 while (length(currentRow) > 0) 17 while (~isempty(currentRow))
18 if(currentRow(1) > listSize) 18 if(currentRow(1) > listSize)
19 row = currentRow(1) - listSize 19 row = currentRow(1) - listSize
20 classList = traceLinkageToBinary(linkList, row); 20 classList = traceLinkageToBinary(linkList, row);
21 featureList{row} = rfFeatureSelection(data(classList>0,:), classList(classList>0)); 21 featureList{row} = rfFeatureSelection(data(classList>0,:), classList(classList>0));
22 currentRow = [currentRow(2:end); linkList(row,1); linkList(row,2)]; 22 currentRow = [currentRow(2:end); linkList(row,1); linkList(row,2)];