diff --git a/bashscripts/runOnEciton.bash b/bashscripts/runOnEciton.bash index 33633b5..0b2e80c 100755 --- a/bashscripts/runOnEciton.bash +++ b/bashscripts/runOnEciton.bash @@ -2,9 +2,9 @@ cd /nfs/wsi/ti/messor/hohlochj/origData -find -mindepth 2 -maxdepth 2 -type d > dirs.txt +#find -mindepth 2 -maxdepth 2 -type d > dirs.txt -sed 's,\./,,g' -i dirs.txt -sed '/^[[:blank:]]*$/d' -i dirs.txt +#sed 's,\./,,g' -i dirs.txt +#sed '/^[[:blank:]]*$/d' -i dirs.txt matlab < /home/hohlochj/masterarbeit/callAll.m > /nfs/wsi/ti/messor/hohlochj/log/$(date +%y-%m-%d--%T)-all.log diff --git a/callAll.m b/callAll.m index 51d2a12..c36e4cd 100644 --- a/callAll.m +++ b/callAll.m @@ -12,7 +12,7 @@ maxExpC=0; maxPerClass=250; EEG=true; -parpool(32); +poolObj=parpool(32); [subjects,numbers]=structForAllDays(pathToFile); for i=1:size(subjects,2) @@ -24,3 +24,4 @@ svmEciton(subject,number,EEG,k,maxExpC,maxPerClass); end end +delete(poolObj) diff --git a/svmEciton.m b/svmEciton.m index d5c70ac..1741128 100644 --- a/svmEciton.m +++ b/svmEciton.m @@ -1,5 +1,5 @@ function svmEciton(subject,number,EEG,k,maxExpC,maxPerClass) - %load(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i200msWindowEMG1sWindowEEG200msShift1sPauseFreq0to200.mat',subject,number)); + load(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i200msWindowEMG1sWindowEEG200msShift1sPauseFreq0to200.mat',subject,number)); addpath('/nfs/wsi/ti/messor/hohlochj/libsvm/matlab'); %k=2; %maxExpC=0; % c\in {2^i|i=-maxExpC:1:maxExpC} @@ -43,5 +43,5 @@ imagesc(cmScaled) colorbar(); saveas(fig,sprintf('/nfs/wsi/ti/messor/hohlochj/plots/%s%i%icm200ms1sPause.fig',subject,number,EEG),'fig'); - save(sprintf('/nfs/wsi/ti/messor/hohlochj/plots/%s%i%i200ms1sPause.fig',subject,number,EEG),'meanAccurancy','maxC','cmScaled'); + save(sprintf('/nfs/wsi/ti/messor/hohlochj/matlabData/%s%i%i200ms1sPause.fig',subject,number,EEG),'meanAccurancy','maxC','cmScaled'); end