git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
7614718
Branches
Tags
master
SVMCrossVal.git
private
fbs_calculateDecodePerformance.m
snapshot, working on fbs
Christoph Budziszewski
commited
7614718
at 2009-03-27 14:57:26
fbs_calculateDecodePerformance.m
Blame
History
Raw
function decode = fbs_calculateDecodePerformance(header,psth,svmopts) RANDOMIZE_DATAPOINTS = header.svmrnd; timeline = header.timeline; timeline.frameShiftStart = header.frameShift.frameShiftStart; timeline.frameShiftEnd = header.frameShift.frameShiftEnd; timeline.decodeDuration = header.frameShift.decodeDuration; timeLineStart = timeline.frameShiftStart; timeLineEnd = timeline.frameShiftEnd; timePointArgs.pst = psth; timePointArgs.labelMap = LabelMap(header.classDef.labelCells,header.classDef.conditionCells); timePointArgs.eventList = header.classDef.eventMatrix; timePointMatrix = buildTimePointMatrix(timeline,timePointArgs); decodePerformance = []; for index = 1:timeLineEnd-timeLineStart+1 svmdata = timePointMatrix{index}(:,2:size(timePointMatrix{index},2)); svmlabel = timePointMatrix{index}(:,1); if RANDOMIZE_DATAPOINTS rndindex = randperm(length(svmlabel)); svmdata = svmdata(rndindex,:); svmlabel = svmlabel(rndindex); end decodePerformance = [decodePerformance; svm_single_crossval(svmlabel,svmdata,svmopts)]; end decode = decodePerformance; end