特征选择 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')

身体对图

Python 中的降维

在 ANSUR 数据上构建 pairplot

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

身体对图(注释)

Python 中的降维

在 ANSUR 数据上构建 pairplot

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

常量对图

Python 中的降维

特征选择

特征选择示意图

Python 中的降维

特征选择

特征选择示意图

特征提取

特征提取示意图

Python 中的降维

特征提取 - 示例

4 对 4 对图

Python 中的降维

特征提取 - 示例

PCA 变换对图

Python 中的降维

Passons à la pratique !

Python 中的降维

Preparing Video For Download...