Skip to content

Commit ad669c8

Browse files
committed
update mRMR
1 parent 2889764 commit ad669c8

5 files changed

Lines changed: 473 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
- Adaboost组合算法:[源码链接](https://github.com/csuldw/MachineLearning/tree/master/Adaboost)
2222

23+
- mRMR特征选择方法,[软件使用方法](https://github.com/csuldw/MachineLearning/tree/master/mRMR)
24+
2325
## Contributor
2426

2527
- 刘帝伟, 中南大学在读硕士,[HOME](http://csuldw.github.io).

‎mRMR/README.md‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## 最小冗余最大相关(minimal Redundancy Maximal Relevance,mRMR)
2+
3+
mRMR方法是用来做特征选择的,该方法保证了特征间的最小冗余性以及特征和类标签的最大相关性,详细的信息请前往原链接[mRMR](http://penglab.janelia.org/proj/mRMR/)
4+
5+
在这里,主要介绍如何将该方法运行起来。
6+
7+
## 使用方法
8+
9+
在Linux环境下将mrmr_c_src.zip文件直接解压后就可以使用了,无需安装。
10+
11+
```
12+
[root@master mrmr_c_src]# ./mrmr
13+
14+
Usage: mrmr_osx -i <dataset> -t <threshold> [optional arguments]
15+
-i <dataset> .CSV file containing M rows and N columns, row - sample, column - variable/attribute.
16+
-t <threshold> a float number of the discretization threshold; non-spec ifying this parameter means no discretizaton (i.e. data is already integer); 0 to make binarization.
17+
-n <number of features> a natural number, default is 50.
18+
-m <selection method> either "MID" or "MIQ" (Capital case), default is MID.
19+
-s <MAX number of samples> a natural number, default is 1000. Note that if you don't have or don't need big memory, set this value small, as this program will use this value to pre-allocate memory in data file reading.
20+
-v <MAX number of variables/attibutes in data> a natural number, default is 10000. Note that if you don't have or don't need big memory, set this value small, as this program will use this value to pre-allocate memory in data file reading.
21+
[-h] print this message.
22+
23+
24+
*** This program and the respective minimum Redundancy Maximum Relevance (mRMR)
25+
algorithm were developed by Hanchuan Peng <hanchuan.peng@gmail.com>for
26+
the paper
27+
"Feature selection based on mutual information: criteria of
28+
max-dependency, max-relevance, and min-redundancy,"
29+
Hanchuan Peng, Fuhui Long, and Chris Ding,
30+
IEEE Transactions on Pattern Analysis and Machine Intelligence,
31+
Vol. 27, No. 8, pp.1226-1238, 2005.
32+
```
33+
34+
在Linux环境下使用nohup提交下列命令
35+
36+
参数说明见上
37+
38+
39+
```
40+
[root@master mrmr_c_src]# nohup ./mrmr -i /home/liudiwei/data/featselect/combine_f195.data -t 0.0001 -s 1000000 -v 1000 -n 42 > result.out 2>&1 &
41+
```
42+
43+
> 警示:由于数据太大,就不提供完整的数据集,trainset.data中只是元数据集的Top10。
44+
45+
46+
********************************************************************************
47+
48+
Result:
49+
50+
最后会将文件输出值result.out中
51+
52+
- result.out文件

‎mRMR/mrmr_c_src.zip‎

42.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)