Giter VIP home page Giter VIP logo

fcbf's Introduction

Fast Correlation-Based Filter (FCBF) selection.

Paper: http://www.public.asu.edu/~huanliu/papers/icml03.pdf

Implementation of the FCBF algorithm.

System requirements

  • Requires Python 2.7
  • Works on Linux and Mac. No guarantees for other OS, but may work.

Usage

Input file format:

Row: observation vector, Col: Feature/Variable vector

In Python, call

`fcbf_wrapper(inpath, thresh, delim=',', header=False, classAt=-1)`

OR

From command line,

> cd FCBF
> python src/fcbf.py -h
usage: fcbf.py [-h] [-inpath] [-thresh] [-delim] [-header] [-classAt]

Fast Correlation-Based Filter Selection (FCBF)

optional arguments:
  -h, --help  show this help message and exit
  -inpath     Path to input file
  -thresh     SU threshold
  -delim      File delimiter
  -header     Contains header?
  -classAt    Index of class column

> python src/fcbf.py -inpath='./data/lungcancer.csv' -thresh=0.05
Reading file. Please wait ...
Success! Dimensions: 32 x 57
Performing FCBF selection. Please wait ...
Done!

#Features selected: 6
Selected feature indices:
[[  0.32054501  39.        ]
 [  0.32017586  19.        ]
 [  0.19562365  55.        ]
 [  0.15251083   1.        ]
 [  0.12478091   9.        ]
 [  0.07640196   2.        ]]

File saved successfully. Path: ../data/features_lungcancer.csv

fcbf's People

Contributors

shiralkarprashant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.