best-found PCA estimator to be used as the estimator in RFECV
问题 This works (mostly from the demo sample at sklearn): print(__doc__) # Code source: Gaël Varoquaux # Modified for documentation by Jaques Grobler # License: BSD 3 clause import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model, decomposition, datasets from sklearn.pipeline import Pipeline from sklearn.model_selection import GridSearchCV from scipy.stats import uniform lregress = LinearRegression() pca = decomposition.PCA() pipe = Pipeline(steps=[('pca', pca), (