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 によって提供される 1 つの重みがあり、そのマニュアルで次のように説明されています。
Cost: cost-factor, by which training errors on
positive examples outweight errors on negative
examples (default 1)
このコストは、基本的に、トレーニング データの正と負のデータ ポイントの数が等しくない場合にバランスを取れるようにするためのものです。e1071 の SVM 実装に似たものはありますか?