# How to optimize RBF parameters $C,\gamma$ with KSVM method?

I want to find the best choice of $C$ and $\gamma$ parameters for Radial Basis Function kernel.

I am using kernlab instead of e1071 library. So how can i optimize RBF parameters $C$ and $\gamma$ with ksvm function?

You can find an example of using Optunity to optimize an SVM in e1707 here, mapping this to kernlab should be straightforward. All you need to do is specify box constraints (a lower and upper bound) on $C$ and $\gamma$ and a budget of function evaluation (i.e., how many ($C$, $\gamma$)-pairs can be tested.
• Excuse me Mr. Claesn, I didn't know that you are main contributor of Optunity package. At last, the command install_github("claesenm/optunity/wrappers/R") worked for me! – SKMohammadi Jul 13 '15 at 6:22