title: How to tune parameter kernels in SVM?
body: <p>I want with <code>tune()</code> from <strong>e1071</strong> find optimal kernel from the list <code>c('linear', 'polynomial', 'radial basis', 'sigmoid')</code>. How to do it? </p>
  
  <p>I tried like this, but it doesn’t work:</p>
  
  <pre><code>svmtune &lt;- tune(svm, y~., data=dat, tunecontrol=tune.control(kernel=c('linear', 'polynomial',
                                                                        'radial basis', 'sigmoid')))
  
  Error in tune.control(kernel = c("linear", "polynomial", "radial basis",  :
     unused argument (kernel = c("linear", "polynomial", "radial basis", "sigmoid"))
  </code></pre>