Skip to content
Andrew Guy edited this page Nov 24, 2021 · 8 revisions

CPU version

Here, we show all information about the sequential version for CPU written in C++.

Prerequisites:

Boost library for C++ must be installed and linked in the Makefile. In most Linux systems, it is enough with typing:

apt-get/yum install boost-devel

Compilation

In order to compile the sequential version, we include a Makefile example in cpu/src folder that generates a binary file called fast-mrmr.

cd fast-mRMR/cpu/src && make && chmod +x fast-mrmr

Example

To execute the feature selection method, we must type the following:

cd fast-mRMR/cpu/src && ./fast-mrmr -f ../data.mrmr -a 50

The selector is designed to only read data in mRMR-format. Data in CSV format can be transformed to this specific format using Data Reader. The options available in the algorithm are:

-f <inputfile> MRMR file generated using mrmrReader (default: ../data.mrmr).
-c <classindex> Indicates the class index in the dataset (default: 0).
-a <nfeatures> Indicates the number of features to select (default: 10).
-h Prints this message.

fast-mRMR's output consists of a ranking of features separated by commas (in descending order):

./fast-mrmr
765,1582,1672,513,1671,1325,1381,1972,1423,1412
Clone this wiki locally