E1071支持向量机的成本与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)这一成本基本上是为了在列车数据没有相同数量的正负数据点的情况下进行平衡。E 1071的支持向量机实现中有类似之处吗?
发布于 2015-01-17 16:45:19
您可能希望查看参数: class.weights (在帮助页面中解释)。
最佳大卫
https://stackoverflow.com/questions/28000132
复制相似问题