From: Mohammad A. Mezher on
Hi everyone,

I had a problem regarding the output size from my evaluation function

the short code is
for i = 1:3
test = (indices == i); train = ~test;
svmStruct = svmtrain(A(train,,groups(train),'Kernel_Function', Kernel_FunctionValue,'Method', MethodValue);
ytest=d(test);
[classes,ypred] = svmclassify(svmStruct,A(test,);
classperf(cp,classes,test);
[AUC(:,i),tpr(:,i),fpr(:,i)]=svmroccurve(ypred,ytest);

end

the problem is in the returned values [AUC(:,i),tpr(:,i),fpr(:,i)] from the evaluation function named here "svmroccurve"

my question
why sometimes the returned value have different size
and if that right how can i manipulate to take the average of the returend value to compute AUC and to draw roc curve?????

could anyone kindly answer this ASAP pleaaaaas

regards