OPencv SVM 预测概率 [英] OPencv SVM predict probability
问题描述
我正在使用 BOW 模型和 SVM 开发一个图像分类项目.我想找出 SVM 预测概率,但 opencv svm 中没有这样的功能.有没有办法做到这一点?我想找出 n 类 SVM 中的预测概率.
I am developing a image-classification project using BOW model and SVM. I want to find out the SVMs predict probability but there is no such function in opencv svm. Is there any way to do this? I want to find out the predict probability in n-class SVM.
推荐答案
不,你不能用 CvSVM 做到这一点.OpenCV 的 SVM 实现基于一个非常旧版本的 libsvm.下载最新版本的 libsvm 并使用它.当然,您必须编写一个包装器来转换数据格式.见 http://www.csie.ntu.edu.tw/~cjlin/libsvm/
No you can't do this with CvSVM. OpenCV's SVM implementation is based on a very old version of libsvm. Download the latest version of libsvm and use it instead. Of course you will have to write a wrapper to convert data formats. See http://www.csie.ntu.edu.tw/~cjlin/libsvm/
这篇关于OPencv SVM 预测概率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!