当前位置:网站首页>Feature selection feature_ selection--SelectKBest
Feature selection feature_ selection--SelectKBest
2022-04-23 18:40:00 【Capture bamboo shoots 123】
feature_selection.SelectKBest(score_func=<function f_classif>, *, k=10)
according to k Highest scores ( Score based on selection algorithm ) Choose k Features
Generally, select the one with the greatest correlation with the output value k Features , The selection algorithm involves statistical knowledge
The purpose of this class is to create a feature selector , The selection and return of features need fit_transform() function
Main class method
fit_transform
Fitting data , In this process, find the one that has the greatest correlation with the tag value k Select a feature and return
fit_transform(X, y=None, **fit_params)
Generally use the format
selector=SelectKBest(k=2) # Create a selector
x_new=selector.fit_transform(x,y) # The selector fits the data first , Select the one that is most relevant to the tag value k Features , Return the entire column of these features as a new ndarray
版权声明
本文为[Capture bamboo shoots 123]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231835454651.html
边栏推荐
- ESP32 LVGL8. 1 - arc (arc 19)
- STM32: LCD display
- 数据库上机实验四(数据完整性与存储过程)
- Sentinel规则持久化进Nacos
- Interpretation and compilation of JVM
- Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
- iptables初探
- 14个py小游戏源代码分享第二弹
- Use of regular expressions in QT
- Introduction to QT programming
猜你喜欢
os_ authent_ Prefix
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
listener.log
logstash 7. There is a time problem in X. the difference between @ timestamp and local time is 8 hours
Custom prompt box MessageBox in QT
ESP32 LVGL8. 1 - input devices (input devices 18)
教你用简单几个步骤快速重命名文件夹名
Analysez l'objet promise avec le noyau dur (Connaissez - vous les sept API communes obligatoires et les sept questions clés?)
Machine learning theory (8): model integration ensemble learning
Introduction to quantexa CDI syneo platform
随机推荐
机器学习理论基础篇--关于机器学习的一些术语
Sentinel service fusing practice (sentinel integration ribbon + openfeign + fallback)
Seata处理分布式事务
The connection of imx6 network port is unstable after power on
[popular science] CRC verification (I) what is CRC verification?
【数学建模】—— 层次分析法(AHP)
ESP32 LVGL8. 1 - arc (arc 19)
教你用简单几个步骤快速重命名文件夹名
机器学习理论之(8):模型集成 Ensemble Learning
Teach you to quickly rename folder names in a few simple steps
使用晨曦记账本,分析某个时间段每个账户收支结余
iptables初探
纠结
Test questions of daily safety network (February 2024)
Mysql database backup command -- mysqldump
Ctfshow - web362 (ssti)
STM32 learning record 0008 - GPIO things 1
CISSP certified daily knowledge points (April 15, 2022)
os_authent_prefix
Tangle