Skip to content

Remper/feature-selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ff7d876 · Aug 2, 2016

History

7 Commits
Aug 2, 2016
May 31, 2014
Aug 2, 2016
Aug 2, 2016
May 24, 2014

Repository files navigation

Implementation Task: a feature selection application

Pointwise Mutual Information and Chi-Squared algorithms implementation for feature selection for binary features.

Uses Grand Central Dispatch for multithreading. If it's available in your system it should kick in automatically

How to use

Dist directory contains binary file compiled for x64 Mac OS X. Binary accepts 4 parameters:

  1. File from which to read the dataset (defaults to sample.dat). File should be in LIBSVM format

  2. Feature selection metric — "pmi" or "chi2" (defaults to chi2)

  3. Number of features to select (defaults to 10)

  4. File in which to store features (defaults to result.txt)

Here are some examples:

./ml trivial.dat chi2 25 result1.txt
./ml a9a.dat pmi 25 result1.txt

How to compile

Just open ml.xcodeproj in XCode and build.

There is also GNUStep makefile available for Linux compilation, but this option is not currently supported due to author's excessive usage of Objective-C 2.0's syntactic sugar. Please forgive me.

About

Feature selection implementation task for FBK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published