特征选择的FCBF方法

2024-10-05 14:25:49 发布

您现在位置:Python中文网/ 问答频道 /正文

本文采用快速相关滤波器(FCBF)选择方法,从自变量中选择有意义和无冗余的变量进行分类。我在github https://github.com/shiralkarprashant/FCBF中找到了该方法的python实现。 我按照相同的步骤使用该方法,但我得到以下错误:

C:\Users\HP> python fcbf.py -h
(null): can't open file 'fcbf.py': [Errno 2] No such file or directory

C:\Users\HP>cd C:\Users\HP\Downloads\FCBF-master\FCBF-master\src

C:\Users\HP\Downloads\FCBF-master\FCBF-master\src> python fcbf.py -h
  File "fcbf.py", line 158
    print "Using minimum SU value as default threshold: {0}".format(thresh)
                                                           ^
SyntaxError: invalid syntax

Tags: 方法pyhttpssrcgithubmastercomdownloads