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.