特徵選擇 vs. 特徵擷取

Python 的降維

Jeroen Boeye

Head of Machine Learning, Faktion

為何要降維?

 

你的資料集將會:
  • 更不複雜
  • 佔用更少磁碟空間
  • 需要更少運算時間
  • 降低模型過度擬合的機率
Python 的降維

特徵選擇

收入 年齡 最愛顏色

Python 的降維

特徵選擇

移除的特徵

insurance_df.drop('favorite color', axis=1)
Python 的降維

在 ANSUR 資料上建立 pairplot

sns.pairplot(ansur_df, hue="gender", diag_kind='hist')

身體 pairplot

Python 的降維

在 ANSUR 資料上建立 pairplot

sns.pairplot(ansur_df, hue="gender", diag_kind='hist')

標註的身體 pairplot

Python 的降維

在 ANSUR 資料上建立 pairplot

sns.pairplot(ansur_df, hue="gender", diag_kind='hist')

常數 pairplot

Python 的降維

特徵選擇

特徵選擇示意圖

Python 的降維

特徵選擇

特徵選擇示意圖

特徵擷取

特徵擷取示意圖

Python 的降維

特徵擷取-範例

4 vs. 4 pairplot

Python 的降維

特徵擷取-範例

pairplot PCA 轉換

Python 的降維

一起來練習吧!

Python 的降維

Preparing Video For Download...