LIBSVM使用错误

时间:2013-12-22 08:22:11

标签: machine-learning artificial-intelligence svm libsvm

在ubuntu平台上使用LIBSVM库时,以下是我得到的输出。请指导我的行动方案:

发出

命令:

./svm-scale -u 1 -l -1 -s parameters.txt negativeSet > negativeSet.scaled
./svm-scale -u 1 -l -1 -r parameters.txt positiveSet > positiveSet.scaled
cat negativeSet.scaled > trainingSet.scaled
cat positiveSet.scaled >> trainingSet.scaled 
./svm-train -t 1 -s 1 trainingSet.scaled 

./svm-train trainingSet.scaled

观察输出:

optimization finished, #iter = 1
obj = nan, rho = nan
nSV = 0, nBSV = 0
Total nSV = 0

我尝试使用带有各种参数的RBF内核,但问题仍然存在。 我的猜测是问题在于缩放文件,但我无法弄清楚问题是什么。 感谢您的早期帮助。感谢

1 个答案:

答案 0 :(得分:1)

你需要调整参数(C,内核等),因为你不太可能使用默认值来获得功能模型。

本指南可能会有所帮助:http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf