a974da24baea3b533edf71d3a3a96f78ea1237b2
Christoph Budziszewski zwischenspeicherung

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m  1) function ppsth = runCoordTable(baseDir,subjects,timeline,coordinates,volumeFileList,classDef)
private/runCoordTable.m  2) %         paramModel = varargin{1};
private/runCoordTable.m  3)     disp('run coord table')
private/runCoordTable.m  4)     
private/runCoordTable.m  5)     disp('does not work yet.')
private/runCoordTable.m  6)     return
private/runCoordTable.m  7)         
private/runCoordTable.m  8)         PROJECT_BASE_PATH = baseDir;
Christoph Budziszewski new LabelMap new svm groupi...

Christoph Budziszewski authored 15 years ago

classify.m               9)         PROJECT_RESULT_PATH = 'results\SPM.mat';
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 10) 
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      11) 
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 12)         timelineParams = timeline;
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      13)         
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m              14)         % common params
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              15)         calculateParams  = struct;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m      16)         
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      17)         calculateParams.PROJECT_BASE_PATH    = PROJECT_BASE_PATH;
private/classify.m      18)         calculateParams.PROJECT_RESULT_PATH  = PROJECT_RESULT_PATH;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m      19)         
private/classify.m      20)         calculateParams.RANDOMIZE       = 0;
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              21)         calculateParams.sessionList     = 1:3;
Christoph Budziszewski class def parsing added str...

Christoph Budziszewski authored 15 years ago

classify.m              22)         
Christoph Budziszewski new LabelMap new svm groupi...

Christoph Budziszewski authored 15 years ago

classify.m              23)         calculateParams.eventList       = classStruct.eventMatrix; %[9,11,13; 10,12,14];
classify.m              24)         
Christoph Budziszewski zwischenspeicherung

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 25)         subjectSelection = subjects;
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      26)         calculateParams.subjectSelection = subjectSelection;
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              27)         
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 28)         decode = claculateMultiSubjectDecodePerformance(timelineParams,calculateParams,paramModel);
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              29) 
classify.m              30)         display('Finished calculations.');
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m              31)         display('Plotting...');
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              32) 
Christoph Budziszewski kleine änderungen code move

Christoph Budziszewski authored 15 years ago

classify.m              33)         plotParams                   = struct;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m      34)         
Christoph Budziszewski subject list from filesyste...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 35) %         plotParams.SVMCROSSVAL_CROSSVAL_METHOD_DEF = SVMCROSSVAL_CROSSVAL_METHOD_DEF;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m      36)         plotParams.CROSSVAL_METHOD     = calculateParams.CROSSVAL_METHOD;
private/classify.m      37)         
Christoph Budziszewski kleine änderungen code move

Christoph Budziszewski authored 15 years ago

classify.m              38)         plotParams.nClasses          = length(calculateParams.classList);
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      39) 
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              40)         plotParams.decodePerformance = decode.decodePerformance;
classify.m              41)         plotParams.rawTimeCourse     = decode.rawTimeCourse;
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      42)         plotParams.SubjectID         = subjectSelection;
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m              43)         plotParams.smoothed          = boolToYesNoString(calculateParams.smoothed);
classify.m              44) 
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m              45)         assignin('base','plotParams',plotParams);
classify.m              46) %         plotDecodePerformance(params.psthStart,params.psthEnd,params.nClasses,decode.decodeTable,params.frameShiftStart,params.frameShiftEnd,decode.rawTimeCourse);
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      47)         plotDecodePerformance(timelineParams,plotParams);
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m              48)             
Christoph Budziszewski new LabelMap new svm groupi...

Christoph Budziszewski authored 15 years ago

classify.m              49)         display('all done.');
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      50) end
private/classify.m      51)     
private/classify.m      52) 
private/classify.m      53) %% subject loop
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 54) function decode = claculateMultiSubjectDecodePerformance(timelineParams,calculateParams,paramModel)
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      55) 
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      56) decode = struct;
private/classify.m      57) decode.decodePerformance = [];
private/classify.m      58) decode.rawTimeCourse     = [];
private/classify.m      59) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      60) for subjectCell = calculateParams.subjectSelection
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      61)     SubjectID = cell2mat(subjectCell);
private/classify.m      62)     namehelper = strcat('s',SubjectID); %Vars can not start with numbers.
private/classify.m      63) 
private/classify.m      64)     display('loading SPM.mat ...');
private/classify.m      65)     spm = load(fullfile(calculateParams.PROJECT_BASE_PATH,SubjectID,calculateParams.PROJECT_RESULT_PATH));
private/classify.m      66)     display('... done.');
private/classify.m      67) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      68)     % per subject params..
private/classify.m      69)     subjectParams = struct;
private/classify.m      70)     
private/classify.m      71)     subjectParams.des             = spm.SPM;
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 72) 
private/runCoordTable.m 73) 
Christoph Budziszewski new parseVoxelTxtField getI...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 74)     subjectParams.voxelList       = mapVoxelList(voxelList,SubjectID);
Christoph Budziszewski git-svn-id: https://svn.dis...

Christoph Budziszewski authored 15 years ago

private/runCoordTable.m 75) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      76)     
private/classify.m      77)     subjectParams.SubjectID       = SubjectID;
private/classify.m      78)     subjectParams.namehelper      = namehelper;
private/classify.m      79) %     assignin('base','calculateParams',calculateParams);
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      80) 
private/classify.m      81)     display(sprintf('calculating cross-validation performance time-shift for Subject %s. Please Wait. ...',SubjectID));
private/classify.m      82)     display('switching off all warnings');
private/classify.m      83)     warning_state               = warning('off','all');
private/classify.m      84)     display('calculating ...');
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/classify.m      85)     decode.(namehelper)         = calculateDecodePerformance(timelineParams,calculateParams,subjectParams);
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m      86) 
private/classify.m      87)     display('... done');
private/classify.m      88)     display('restoring warnings');
private/classify.m      89)     warning(warning_state);
private/classify.m      90) 
private/classify.m      91)     decode.decodePerformance    = [decode.decodePerformance decode.(namehelper).decodePerformance];
private/classify.m      92)     decode.rawTimeCourse        = [decode.rawTimeCourse decode.(namehelper).rawTimeCourse];
private/classify.m      93) 
private/classify.m      94)     assignin('base','decode',decode);
private/classify.m      95) end
private/classify.m      96)