Recursive feature elimination and grid search using scikit-learn
I would like to perform recursive feature elimination with nested grid search and cross-validation for each feature subset using scikit-learn. From the RFECV documentation it sounds like this type of operation is supported using the estimator_params parameter: estimator_params : dict Parameters for the external estimator. Useful for doing grid searches. However, when I try to pass a grid of hyperparameters to the RFECV object from sklearn.datasets import make_friedman1 from sklearn.feature_selection import RFECV from sklearn.svm import SVR X, y = make_friedman1(n_samples=50, n_features=10,