我想tune()
从e1071 中找到最佳内核列表c('linear', 'polynomial', 'radial basis', 'sigmoid')
。怎么做?
我试过这样,但它不起作用:
svmtune <- 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"))