diff options
author | Gregory Ditzler <gregory.ditzler@gmail.com> | 2014-06-10 17:40:47 -0400 |
---|---|---|
committer | Gregory Ditzler <gregory.ditzler@gmail.com> | 2014-06-10 17:40:47 -0400 |
commit | a658df724eb5e26f030be36a2035b6c2be0e2c87 (patch) | |
tree | 914a7a4ff48ad42b23f4a9757feda8e3a8a07c33 | |
parent | b06c71421fc6d90581b6e6f5369c9db4f1840b36 (diff) |
added MIM test
-rw-r--r-- | test/test.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/test.py b/test/test.py index b5e16d1..caa3874 100644 --- a/test/test.py +++ b/test/test.py @@ -66,7 +66,7 @@ elif data_source == 'digits': n_observations = len(data) # number of samples in the data set n_features = len(data.transpose()) # number of features in the data set n_select = 15 # how many features to select -method = 'JMI' # feature selection algorithm +method = 'MIM' # feature selection algorithm print '---> Information' @@ -147,6 +147,16 @@ if check_result(sf, n_relevant) == True: else: print ' mRMR failed!' +################################################################# +################################################################# +print ' Running MIM...' +sf = MIM(data, labels, n_select) +if check_result(sf, n_relevant) == True: + print ' MIM passed!' +else: + print ' MIM failed!' + +p print '---> Done unit tests!' |