Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WEKA: How to filter multiple attribute ranges?

This is what I usually do to select an attribute range in weka

String[] options = new String[2];
options[0] = "-R";                                    // "range"
options[1] = "1-2"; 

Remove remove = new Remove();                         // new instance of filter
remove.setOptions(options);   

Now, I need to remove attribute field 4 as well, how can I specify this in options[1] ?

thanks

like image 767
aneuryzm Avatar asked May 18 '11 08:05

aneuryzm


1 Answers

The Remove API describes the attributes to be removed as a comma-separated list, so I think you should use:

options[1] = "1-2,4";
like image 62
Yuval F Avatar answered Oct 16 '22 07:10

Yuval F