如何使用svm.cpp进行预测(Libsvm) [英] how to do the prediction using svm.cpp (Libsvm)

查看:105
本文介绍了如何使用svm.cpp进行预测(Libsvm)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Libsvm.iam的新手,使用Libsvm,我已经将svm.cpp和svm.h文件添加到我的项目中。我有我的模型文件存储在项目文件夹和用于进行预测的比例文件。我的问题是我应该用什么方法在svm.cpp中进行预测?



对于预测部分,如果我使用libsvm包中的svmprediction.exe文件,我必须给,

1.测试.scale文件路径(有我的测试值)

2. X.scale.model文件路径

3.输出文件(存储预测结果)



但是现在我想用svm.cpp来做它。我找不到任何接受上述3个参数的方法。需要帮助。谢谢你..我希望我的问题很明确: - )

Hi, Iam new to Libsvm.iam using Libsvm and i have added svm.cpp and svm.h files to my project. i have my model files stored in the project folder and the scale file which use to do the prediction.My problem is what is the method i should use to do the prediction in svm.cpp?

For the prediction part if i use svmprediction.exe file which is inside the libsvm package, i have to give,
1. Test.scale file path (which has my test values)
2. X.scale.model file path
3. Output file (which stores the result of the prediction)

But now i want to do it using svm.cpp.I can't find any type of method which accepts above 3 parameters.Need help.Thank you..I hope my problem is clear :-)

推荐答案

你最好试试运气:http://www.csie.ntu.edu.tw/~cjlin/libsvm/faq.html [ ^ ]
you better try your luck here: http://www.csie.ntu.edu.tw/~cjlin/libsvm/faq.html[^]


这篇关于如何使用svm.cpp进行预测(Libsvm)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆