开发者

WEKA: How to filter multiple attribute ranges?

开发者 https://www.devze.com 2023-03-06 13:05 出处:网络
This is what I usually do to select 开发者_JS百科an attribute range in weka String[] options = new String[2];

This is what I usually do to select 开发者_JS百科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


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";
0

精彩评论

暂无评论...
验证码 换一张
取 消