2
votes

I am trying to use SVR with an rbf kernel (obviously) on a regression problem. My dataset has something like 300 features. I would like to select more relevant features and use something like the sequentialfs function of matlab which would try every combination (or anyway starting with few variables and adding variables on the way, or the opposite, going backward, like the RFE or RFECV of scikit)).

Now, as said, for python there is the RFE but I can't use it with a non linear estimator. Is there anything I am not aware about which would allow me to use the RFE with a non linear estimator? I suppose it wouldn't be difficult to write an algorithm that does that, but if there is already something which does the job it would be definitely better.

Thank you as always ;)

1

1 Answers

0
votes

RFE must have some way of determining the feature importances and RBF kernel SVMs don't provide that. From a quick glance at the original algorithm, I get the impression that an implementation for kernel SVMs would have to integrated into the SVM learning algorithm.

Stepwise (forward or backward) feature selection would be easy to implement, but is not available as a pre-built estimator in scikit-learn.