Ex 1: Pipeline Anova SVM
(一)建立模擬資料
# import some data to play with
X, y = samples_generator.make_classification(
n_features=20, n_informative=3, n_redundant=0, n_classes=4,
n_clusters_per_class=2)(二)選擇最好的特徵
(三)以佇列方式來設定支持向量機分類法運算物件
(四)原始碼
Python source code: feature_selection_pipeline.py
(五)函式用法
SelectKBest() 的參數
SelectKBest() 的參數Last updated