I'd say that the problem is that you are doing 2000 bootstrap samples. Let's say that the argument tuneLength
has a value of T
and you are testing 5 subset sizes. For these specifications, you are fitting 10000*T
SVM models for a data set with 8000 samples and 400 variables.
Maybe I low-ball it, but I don't usually do more than 50 resamples (unless the training set is really small). You are basically trying to estimate the mean here (unlike more traditional uses of the bootstrap) and 25 or 50 should be enough, especially for that sample size.
Remember, rfe
is replicated the entire feature selection process for each resample, so the computations really add up.
Max