git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
7984c76
Branches
Tags
master
SVMCrossVal.git
private
calculateMultiSubjectDecodePerformance.m
added randomize datapoints option
Christoph Budziszewski
commited
7984c76
at 2009-03-16 20:09:44
calculateMultiSubjectDecodePerformance.m
Blame
History
Raw
%% subject loop function decode = calculateMultiSubjectDecodePerformance(header,subjectdata,svmopts) decode = struct; decode.decodePerformance = []; decode.rawTimeCourse = []; nSubjects = numel(subjectdata); disp(sprintf('batch processing %g subjects',nSubjects)); for subjectDataID = 1:nSubjects % SubjectID = cell2mat(subjectCell); currentSubject = subjectdata{subjectDataID}; namehelper = strcat('s',currentSubject.name); %Vars can not start with numbers. display(sprintf('calculating cross-validation performance time-shift for Subject %s. Please Wait. ...',currentSubject.name)); % display('switching off all warnings'); % warning_state = warning('off','all'); display('calculating ...'); decode.(namehelper) = calculateDecodePerformance(header,currentSubject,svmopts); display('... done'); % display('restoring warnings'); % warning(warning_state); decode.decodePerformance = [decode.decodePerformance decode.(namehelper).decodePerformance]; decode.rawTimeCourse = [decode.rawTimeCourse decode.(namehelper).rawTimeCourse]; assignin('base','decode',decode); end end