首页 > 解决方案 > 如何使用过滤器方法创建管道,这些方法选择相关性高于值的结果(特征)?

问题描述

我想实现hybrid method如下feature selection

  1. filter method( Univariate feature selection, 使用correlation),所有相关性高于 X 值的特征都将传递到下一步:
  2. filter method( Multivariate filter methods, 使用correlation),所有相关性低于 Y 值的特征都将传递到下一步:

  3. wrapper method

我想用pipeline方法来做。

对于过滤器方法,似乎sklearn没有提供选择高于或低于阈值的特征的选项。

SelectKBestSelectPercentile 选择 K bests features,但我想根据 选择特征thresholds)。

有可能sklearn吗?如何 ?

或者我怎么能用管道做到这一点?

标签: machine-learningscikit-learnpipelinefeature-selection

解决方案


推荐阅读