machine-learning - 如何使用过滤器方法创建管道,这些方法选择相关性高于值的结果(特征)?
问题描述
我想实现hybrid method
如下feature selection
:
filter method
(Univariate feature selection
, 使用correlation
),所有相关性高于 X 值的特征都将传递到下一步:filter method
(Multivariate filter methods
, 使用correlation
),所有相关性低于 Y 值的特征都将传递到下一步:wrapper method
我想用pipeline
方法来做。
对于过滤器方法,似乎sklearn
没有提供选择高于或低于阈值的特征的选项。
(SelectKBest
或SelectPercentile
选择 K bests features,但我想根据 选择特征thresholds
)。
有可能sklearn
吗?如何 ?
或者我怎么能用管道做到这一点?
解决方案
推荐阅读
- c++ - 为什么使用 SPI 时全局缓冲区变量产生的结果与局部缓冲区变量不同?
- javascript - eslint 允许重复的 const 值
- rust - 尝试从响应正文加载图像时不受支持的图像格式
- angular - 变量更改后更新组件
- sql-server - 调用动态 SQL 或存储过程
- python - Python是否检查多条件if语句中的所有条件?
- spring-boot - @ControllerAdvice 在 Spring Boot 中永远不会被触发
- reactjs - 在 redux 中处理按钮状态和操作
- c++ - D3D 设备过早失效或销毁
- tensorflow - TensorFlow 自定义操作中的后台线程和 absl::Notifications