Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* multiclass libsvm fix for label permutations:
libsvm internally relabels all examples and stores that label in model->label. thus the svm pair (i,j) translates to (model->label[i], model->label[j]), so the solution is to compute the svm index for the (model->label[i], model->label[j]) pair * note that if (model->label[i] > model->label[j]), signs have to be flipped, which also occured to us in the 2-class case, as libsvm internally uses +1 for the first occuring class and -1 for the other (which is why have to flip signs if the first label<0) for 2-class problems too. * apapart from that it delivers very similar results to vojtech's L2-multiclass b-svm
- Loading branch information