当前位置:网站首页>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 - textarea text area (textarea 26)
- On iptables
- CISSP certified daily knowledge points (April 13, 2022)
- 迁移学习进阶
- Introduction to QT programming
- In shell programming, the shell file with relative path is referenced
- kettle庖丁解牛第17篇之文本文件输出
- QT add external font ttf
- Nacos集群搭建和mysql持久化配置
- Spark performance optimization guide
猜你喜欢
函数递归以及趣味问题的解决
Halo 开源项目学习(七):缓存机制
Setting up keil environment of GD single chip microcomputer
ESP32 LVGL8. 1 - calendar (calendar 25)
使用晨曦记账本,分析某个时间段每个账户收支结余
Teach you to quickly rename folder names in a few simple steps
STM32 learning record 0008 - GPIO things 1
How to virtualize the video frame and background is realized in a few simple steps
Quantexa CDI(场景决策智能)Syneo平台介绍
ESP32 LVGL8. 1 - arc (arc 19)
随机推荐
Database computer experiment 4 (data integrity and stored procedure)
Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
Sentinel规则持久化进Nacos
ESP32 LVGL8. 1 - event (event 17)
Notepad + + replaces tabs with spaces
迁移学习进阶
Daily CISSP certification common mistakes (April 12, 2022)
K210串口通信
QT tablewidget insert qcombobox drop-down box
CISSP certified daily knowledge points (April 12, 2022)
使用晨曦记账本,分析某个时间段每个账户收支结余
ESP32 LVGL8. 1 - label (style 14)
CISSP certified daily knowledge points (April 18, 2022)
ctfshow-web362(SSTI)
Analysez l'objet promise avec le noyau dur (Connaissez - vous les sept API communes obligatoires et les sept questions clés?)
机器学习理论基础篇--关于机器学习的一些术语
ESP32 LVGL8. 1 - anim animation (anim 16)
QT excel operation summary
C language simulates entering and leaving the stack, first in first out, first in first out, shared memory
Nacos作为服务配置中心实战