在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.scaledcat negativeSet.scaled > trainingSet.scaledcat positiveSet.scaled >> trainingSet.scaled ./svm-train -t 1 -s 1 trainingSet.scaled
和
./svm-train trainingSet.scaled
观察到的输出:
optimization finished, #iter = 1obj = nan, rho = nannSV = 0, nBSV = 0Total nSV = 0
我尝试使用RBF核并调整了各种参数,但问题依然存在。我猜测问题出在缩放文件上,但我无法找出具体问题。希望能尽早得到帮助。谢谢
回答:
你需要调整参数(如C、核函数等),因为使用默认值几乎不可能得到一个有效的模型。
这份指南可能会有帮助:http://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf