# HG changeset patch # User DaveM # Date 1489743738 0 # Node ID 6155f4e3d37ca5960df0051de63a210501428373 # Parent 781ebde125cf0f23fbb6418bbfdd78269d7db0aa adding further debug script diff -r 781ebde125cf -r 6155f4e3d37c analysis/AnalysisOutput.txt --- a/analysis/AnalysisOutput.txt Thu Mar 16 11:33:01 2017 +0000 +++ b/analysis/AnalysisOutput.txt Fri Mar 17 09:42:18 2017 +0000 @@ -1,26 +1,3 @@ -{Undefined function or variable 'listSize'. - -Error in analysisWorkflow (line 3) -currentRow = [2*listSize-1]; -} -load('/Volumes/Internal/Documents/sfx-subgrouping/code/adobeDataNorm.mat') -if system_dependent('IsDebugMode')==1, dbquit; end -save('AdobeAllResults.mat') -analysisWorkflow -{Undefined function or variable 'listSize'. - -Error in analysisWorkflow (line 3) -currentRow = [2*listSize-1]; -} -analysisWorkflow -{Undefined function or variable 'data'. - -Error in analysisWorkflow (line 3) -listSize = size(data,1); -} -3 listSize = size(data,1); -if system_dependent('IsDebugMode')==1, dbquit; end -save('AdobeAllResults.mat') save('AdobeAllResults.mat') analysisWorkflow diff -r 781ebde125cf -r 6155f4e3d37c analysis/analyseBugScript.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/analysis/analyseBugScript.m Fri Mar 17 09:42:18 2017 +0000 @@ -0,0 +1,25 @@ + +% define Row + +row = 8968; + +classList = traceLinkageToBinary(linkList,row); +X = data(classList>0,featureList{row,1}); +Y = classList(classList>0); +pDepth = max(featureList{row,3}.PruneList)-1; + +T1 = prune(featureList{row,3},'Level',pDepth); +[l,se] = loss(T1,X,Y) + +view(T1,'Mode','graph') + +%% +pDepth = pDepth-1; + +T1 = prune(featureList{row,3},'Level',pDepth); +[l,se] = loss(T1,X,Y) + +view(T1,'Mode','graph') + +%% +view(T1) \ No newline at end of file