1

e1071 的 SVM 的成本似乎与 svmlight 的成本不同。e1071 库的手册对其成本参数进行了以下定义:

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 实现中是否有类似的东西?

4

1 回答 1

0

您可能想查看参数:class.weights(在帮助页面上有说明)。

最好的大卫

于 2015-01-17T16:45:19.203 回答