I am trying to use perfcurv in a cross validation code. However at some point all the members of the test dataset are of the same class (0). My problem is a binary classification problem. Therefore the following error occurs:
Error using perfcurve (line 368) Less than two classes are found in the array of true class labels.
Error in loadsurfperframe_GIE_leave_one_out (line 669) [x,y,t,AUC(i),OPTROCPT,SUBY,SUBYNAMES] = perfcurve(test_classes,ytest,1);
What should I do to solve this ?