6595def85cf63a3b6c95f55f9e17cf2bb102b0e8
Christoph Budziszewski gui layout finished

Christoph Budziszewski authored 15 years ago

classify.m           1) function classify(varargin)
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m           2) 
Christoph Budziszewski using global variables now....

Christoph Budziszewski authored 15 years ago

private/classify.m   3) global CROSSVAL_METHOD_DEF;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m   4) 
Christoph Budziszewski gui layout finished

Christoph Budziszewski authored 15 years ago

classify.m           5) switch nargin
classify.m           6)     case 1
classify.m           7)         paramModel = varargin{1};
Axel Lindner New Option for COL Bias rem...

Axel Lindner authored 15 years ago

classify.m           8)         %PROJECT_BASE_PATH = 'D:\Analyze\Stimolos';
classify.m           9)         PROJECT_BASE_PATH = 'D:\Analyze\Choice\24pilot';
Christoph Budziszewski new LabelMap new svm groupi...

Christoph Budziszewski authored 15 years ago

classify.m          10)         PROJECT_RESULT_PATH = 'results\SPM.mat';
Christoph Budziszewski gui layout finished

Christoph Budziszewski authored 15 years ago

classify.m          11)     otherwise
classify.m          12)         error('spmtoolbox:SVMCrossVal:arginError','Please Specify action and parameter model');
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m          13) end
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m  14) 
private/classify.m  15)         % timeline params (claculate and plot)
private/classify.m  16)         timelineParams = struct;
private/classify.m  17)         
private/classify.m  18)         timelineParams.frameShiftStart = getDouble(paramModel.txtFrameShiftStart);  % -20;
private/classify.m  19)         timelineParams.frameShiftEnd   = getDouble(paramModel.txtFrameShiftEnd); %15;
private/classify.m  20)         timelineParams.decodeDuration  = getDouble(paramModel.txtFrameShiftDur);
private/classify.m  21)         timelineParams.psthStart       = getDouble(paramModel.txtPSTHStart); % -25;
private/classify.m  22)         timelineParams.psthEnd         = getDouble(paramModel.txtPSTHEnd); % 20;
private/classify.m  23)         timelineParams.baselineStart   = getDouble(paramModel.txtBaselineStart); % -22;
private/classify.m  24)         timelineParams.baselineEnd     = getDouble(paramModel.txtBaselineEnd); % -20;       
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

private/classify.m  28)         
Christoph Budziszewski using global variables now....

Christoph Budziszewski authored 15 years ago

private/classify.m  29) %         calculateParams.CROSSVAL_METHOD_DEF = CROSSVAL_METHOD_DEF;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m  30)         calculateParams.CROSSVAL_METHOD     = CROSSVAL_METHOD_DEF.svmcrossval;
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m  31)         calculateParams.PROJECT_BASE_PATH   = PROJECT_BASE_PATH;
private/classify.m  32)         calculateParams.PROJECT_RESULT_PATH = PROJECT_RESULT_PATH;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

private/classify.m  33)         
private/classify.m  34)         calculateParams.RANDOMIZE       = 0;
private/classify.m  35)         
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

private/classify.m  36)         calculateParams.smoothed        = getChkValue(paramModel.chkSmoothed);
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m          37) 
Christoph Budziszewski GUI parsing halfway done.

Christoph Budziszewski authored 15 years ago

classify.m          38)         calculateParams.svmargs         = get(paramModel.txtSVMopts,'String');
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

classify.m          39)         calculateParams.sessionList     = 1:3;
Christoph Budziszewski GUI parsing halfway done.

Christoph Budziszewski authored 15 years ago

classify.m          40) 
Christoph Budziszewski class def parsing added str...

Christoph Budziszewski authored 15 years ago

classify.m          41)         classStruct = parseClassDef(paramModel);
classify.m          42)         
classify.m          43)         
Christoph Budziszewski new LabelMap new svm groupi...

Christoph Budziszewski authored 15 years ago

classify.m          44)         calculateParams.labelMap        = LabelMap(classStruct.labelCells , classStruct.conditionCells, 'auto'); % LabelMap({'<','>','<+<','>+>','<+>','>+<'},{-2,-1,1,2,3,4}); 0 is autolabel
classify.m          45)         calculateParams.classList       = getClasses(calculateParams.labelMap);
classify.m          46)         calculateParams.eventList       = classStruct.eventMatrix; %[9,11,13; 10,12,14];
classify.m          47) %         calculateParams.eventList       = getPSTEventMatrix(calculateParams.labelMap);
classify.m          48)         
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

classify.m          49)         subjectSelection = getSubjectIDString(paramModel);
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

classify.m          51)         
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/classify.m  52)         decode = claculateMultiSubjectDecodePerformance(timelineParams,calculateParams);
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

private/classify.m  58)         
Christoph Budziszewski using global variables now....

Christoph Budziszewski authored 15 years ago

private/classify.m  59) %         plotParams.CROSSVAL_METHOD_DEF = CROSSVAL_METHOD_DEF;
Christoph Budziszewski transport changes

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

classify.m          69)         assignin('base','plotParams',plotParams);
classify.m          70) %         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  71)         plotDecodePerformance(timelineParams,plotParams);
Christoph Budziszewski multi-subject support

Christoph Budziszewski authored 15 years ago

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

Christoph Budziszewski authored 15 years ago

classify.m          73)         display('all done.');