-wi weight : set the parameter C of class i to weight*C, for C-SVC (default 1)
fiona 发表于 2012-6-11 14:21
如何权重分开写,就会出现“Zero Weights processed. Default weights will be used“ 这样的话,权重设置 ...
"svm-train -c 10 -w1 1 -w-1 5 data_file
Train a classifier with penalty 10 = 1 * 10 for class 1 and penalty 50
= 5 * 50 for class -1."
It seems libSVM doesn't recognize -W0 (or -W equivalently). In the above
example the arguments -W1 and -W-1 are used to assign weights to the
attributes 1 and -1 respectively. Maybe -1 corresponds to the target
class, but I think you have to run some tests on that or ask the libSVM
guys.
欢迎光临 机器学习和生物信息学实验室联盟 (http://123.57.240.48/) | Powered by Discuz! X3.2 |