0
$\begingroup$

I'm looking to implement a linear and non-linear SVM in R but having some confusion over which argument to use in svm(). For the linear SVM I want to add in the penalty $\gamma$ for soft margin. This is the gamma = argument, correct? How is it different from the cost = or epsilon = argument?

Secondly, under the RBF kernel in the non-linear SVM, what is the sigma/bandwidth argument called?

$\endgroup$
2
$\begingroup$

I have figured it out. For svm() the correct argument for soft margin is "cost" and the correct argument for bandwidth under the rbf kernel is implicitly defined by "gamma"

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.