gpt4 book ai didi

machine-learning - LIBSVM 使用错误

转载 作者:行者123 更新时间:2023-11-30 09:57:14 25 4
gpt4 key购买 nike

在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 内核,但问题仍然存在。我的猜测是问题出在缩放文件上,但我无法弄清楚问题是什么。感谢您的早期帮助。谢谢

最佳答案

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

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

关于machine-learning - LIBSVM 使用错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20727562/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com