I have looked at the leaps package: http://www.inside-r.org/packages/cran/leaps/docs/regsubsets to use wrapper feature selection for data mining. How can I implement this and also tune parameters (by testing multiple different parameters using tune from e1071 package: http://www.inside-r.org/packages/cran/e1071/docs/tune? Could using different features (through tune) lead to different feature selection? I have not managed to find any examples which use both wrapper feature selection and parameter tuning, if anyone could point me to any I'd be very grateful.
Here is my code at the moment:
set.seed(100)
svm_model <- svm(class ~ ., data = data, cost = 1000, method="C-classification")
svm_pred <- predict(svm_model, testdata[,-50])
confusionMatrix(table(svm_preds,testdata$class))
