Ex 3: Recursive Feature Elimination with Cross-Validation
特徵選擇/範例三: Recursive feature elimination with cross-validation
(一)建立模擬資料
# Build a classification task using 3 informative features
X, y = make_classification(n_samples=1000, n_features=25, n_informative=3,
n_redundant=2, n_repeated=0, n_classes=8,
n_clusters_per_class=1, random_state=0)(二)以疊代排序特徵影響力,並以交叉驗證來選出具有實際影響力的特徵
(三)畫出具有影響力特徵對應準確率的圖

(四) 原始碼出處
本章介紹到函式用法
RFECV() 的參數
RFECV() 的參數Last updated