e1071的SVM中的成本似乎与svmlight的成本不同。e1071库的手册针对其cost参数规定了以下定义:
cost of constraints violation (default: 1)—it is the ‘C’-constant of the regular-
ization term in the Lagrange formulation
这基本上是允许错过分类的条件。svmlight提供了一个权重,在其手册中描述为:
Cost: cost-factor, by which training errors on
positive examples outweight errors on negative
examples (default 1)
该成本基本上是为了在火车数据的正负数据点数不相等的情况下实现平衡。e1071的SVM实现中是否有相似之处?
您可能想要查看参数:class.weights(在帮助页面上进行了说明)。
最佳大卫
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句