Mercurial > hg > sfx-subgrouping
comparison phase2/treeLinkFeatures.m @ 12:d0bd98e7b6c9
fixing error where crash at end of file, for treeLinkFeatures
author | DaveM |
---|---|
date | Fri, 10 Feb 2017 14:32:07 +0000 |
parents | 29304e7bfead |
children | 0718e03cb36d |
comparison
equal
deleted
inserted
replaced
11:29304e7bfead | 12:d0bd98e7b6c9 |
---|---|
11 | 11 |
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 (length(currentRow) > 0) |
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)]; |
23 else | 23 else |