0e963b354da4072cdc459ff95838f440385ee9fa
Christoph Budziszewski snapshot, classification

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m  1) function outputStruct = calculateDecodePerformance(timeline,subjectStruct,model)
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

calculateDecodePerformance.m          2) outputStruct = struct;
Christoph Budziszewski snapshot, classification

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m  3) RANDOMIZE_DATAPOINTS = 0;
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

calculateDecodePerformance.m          4) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m  5) 
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

calculateDecodePerformance.m          6) eventList       = inputStruct.eventList;
calculateDecodePerformance.m          7) 
Christoph Budziszewski subject loop is function

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m  8) timeLineStart   = timeline.frameShiftStart;
private/calculateDecodePerformance.m  9) timeLineEnd     = timeline.frameShiftEnd;
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m 10) 
Christoph Budziszewski snapshot, classification

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m 11) % for iVoxel = 1:nVoxel
private/calculateDecodePerformance.m 12) %     rawdata = [];
private/calculateDecodePerformance.m 13) %     for iImage = 1:length(extr);
private/calculateDecodePerformance.m 14) %         tmp = extr(iImage);
private/calculateDecodePerformance.m 15) %         rawdata = [rawdata tmp.dat(iVoxel)];
private/calculateDecodePerformance.m 16) %     end
private/calculateDecodePerformance.m 17) %     pst{iVoxel} = calculatePST(timeline,calculatePstOpts,rawdata);
private/calculateDecodePerformance.m 18) % end
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m 19) 
private/calculateDecodePerformance.m 20) 
private/calculateDecodePerformance.m 21) 
private/calculateDecodePerformance.m 22) timePointArgs.pst = pst;
private/calculateDecodePerformance.m 23) 
private/calculateDecodePerformance.m 24) timePointArgs.labelMap      = inputStruct.labelMap;
private/calculateDecodePerformance.m 25) timePointArgs.eventList     = eventList;
private/calculateDecodePerformance.m 26) 
private/calculateDecodePerformance.m 27) timePointMatrix = buildTimePointMatrix(timeline,timePointArgs);
private/calculateDecodePerformance.m 28) 
private/calculateDecodePerformance.m 29) decodePerformance = [];
private/calculateDecodePerformance.m 30) for index = 1:timeLineEnd-timeLineStart+1
private/calculateDecodePerformance.m 31) 
private/calculateDecodePerformance.m 32)     svmdata      = timePointMatrix{index}(:,2:size(timePointMatrix{index},2));
private/calculateDecodePerformance.m 33)     svmlabel     = timePointMatrix{index}(:,1);
private/calculateDecodePerformance.m 34) 
private/calculateDecodePerformance.m 35)     if RANDOMIZE_DATAPOINTS
private/calculateDecodePerformance.m 36)         rndindex  = randperm(length(svmlabel));
private/calculateDecodePerformance.m 37)         svmdata   = svmdata(rndindex,:);
private/calculateDecodePerformance.m 38)         svmlabel  = svmlabel(rndindex);
private/calculateDecodePerformance.m 39)     end
private/calculateDecodePerformance.m 40) 
Christoph Budziszewski snapshot, classification

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m 41)     decodePerformance = [decodePerformance; svm_single_crossval(svmlabel,svmdata,svmopts)];
private/calculateDecodePerformance.m 42)     
private/calculateDecodePerformance.m 43)     
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

private/calculateDecodePerformance.m 44) end
private/calculateDecodePerformance.m 45) 
private/calculateDecodePerformance.m 46) outputStruct.decodePerformance  = decodePerformance;
private/calculateDecodePerformance.m 47) outputStruct.svmdata            = svmdata;
private/calculateDecodePerformance.m 48) outputStruct.svmlabel           = svmlabel;
private/calculateDecodePerformance.m 49) outputStruct.rawTimeCourse      = pst;
private/calculateDecodePerformance.m 50) outputStruct.minPerformance     = minPerformance;
private/calculateDecodePerformance.m 51) outputStruct.maxPerformance     = maxPerformance;
Christoph Budziszewski SVMCrossVal toolbox init

Christoph Budziszewski authored 15 years ago

calculateDecodePerformance.m         52) end
calculateDecodePerformance.m         53)