WEKA:如何过滤多个属性范围?

时间:2011-05-18 08:38:32

标签: machine-learning weka classification

这是我通常在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);   

现在,我还需要删除属性字段4,如何在选项[1]中指定它?

感谢

1 个答案:

答案 0 :(得分:6)

The Remove API描述要作为逗号分隔列表删除的属性, 所以我认为你应该使用:

options[1] = "1-2,4";