You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by "Pagliari, Roberto" <rp...@appcomsci.com> on 2015/04/23 00:25:06 UTC

setting cost in linear SVM [Python]

Is there a way to set the cost value C when using linear SVM?

Re: setting cost in linear SVM [Python]

Posted by Xiangrui Meng <me...@gmail.com>.
If by "C" you mean the parameter C in LIBLINEAR, the corresponding
parameter in MLlib is regParam:
https://github.com/apache/spark/blob/master/python/pyspark/mllib/classification.py#L273,
while regParam = 1/C. -Xiangrui

On Wed, Apr 22, 2015 at 3:25 PM, Pagliari, Roberto
<rp...@appcomsci.com> wrote:
> Is there a way to set the cost value C when using linear SVM?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org