How to combine binary classifier's results to output multi-class classification adopting File Exchange example in Libsvm's precomputed svmtrain?
4 次查看(过去 30 天)
显示 更早的评论
In File Exchange example: https://www.mathworks.com/matlabcentral/fileexchange/39352-multi-class-svm under %build model heading, author has the following line of code:
models(k) = svmtrain(TrainingSet,G1vAll);
How to use the same approach using above line of code with Libsvm's precomputed kernel? In particular, how to use it here:
model = svmtrain(TrainLabels, double(K), '-t 4');
Note that here svmtrain is a Libsvm function not to be confused with MATLAB's svmtrain function.
I have used Libsvm's precomputed kernel for binary classification using one-vs-one approach. Each one of these binary classification results give output accuracies. I will like to combine/ensemble all these accuracies to get one final output accuracy equivalent to that of multi-class classifier. For this reason, I looked for above File Exchange example which works fine for MATLAB's svmtrain function, but I am not sure how to use the same approach for LIBSVM's precomputed kernel function using their svmtrain function. Perhaps there is other way to obtain my desired result.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!