You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: runSVM_v3.m
    path of file: ./repos/malini/Classifiers/RCE/classify
    
    the code of the file until where you have to start completion: function [performance]= runSVM_v3(data,groups,inner_kfold,itr)

    
function [performance]= runSVM_v3(data,groups,inner_kfold,itr)
%data: each arrow is one observation
%species : arrow(i) is the class member of observation data(i)
%clsname : The names of the g

% Select training and test sets randomly 
cp = classperf(groups);
for kk=1:itr
    indices = crossvalind('Kfold',length(groups),inner_kfold);
    for ij=1:inner_kfold
        test = (indices == ij); train =~ test;
        model = classifier_train(data(train,:),groups(train)');
        [classes] = classifier_predict(model,data(test,:));
        classperf(cp,classes,test);
    end