import matplotlib.pyplot as plt from sklearn.svm import SVC from sklearn.model_selection import StratifiedKFold from sklearn.feature_selection import RFECV from sklearn.datasets import make_classification
通过交叉验证来消除递归特征(Recursive feature elimination with cross-validation)一个递归特征消除的示例,该示例通过交叉验证自动调整所选特征的数量。sphx_glr_plot_rfe_with_cross_validation_001输出:Optimalnumberoffeatures:3print(__doc__)import...