Hi.Thanks for your implementation but I think it is incorrect. When you return 0 or 1 from svmclassify, you maybe have several zeros or ones with different classes!!!
I think you need to compute the real values(before execute sign function) and assign the test data to the class which has the biggest positive ouput.
25 Oct 2013
Multi Class SVM
Model and classify training/test data sets into more than 2 classes with SVM.