Multi-Class SVM( one versus all)

前端 未结 3 399
粉色の甜心
粉色の甜心 2020-12-08 09:07

I know that LIBSVM only allows one-vs-one classification when it comes to multi-class SVM. However, I would like to tweak it a bit to perform one-against-all classification.

3条回答
  •  既然无缘
    2020-12-08 09:26

    Instead of probability estimates, you can also use the decision values as follows

    [~,~,d] = svmpredict(double(testLabel==k), testData, model{k});
    prob(:,k) = d * (2 * model{i}.Label(1) - 1);
    

    to achieve the same purpose.

提交回复
热议问题