Usage on Weka Attribute Filter
I seldom use Weka, but just reminded me some work I did years ago...
AttributeFilter af = new AttributeFilter();
int i[] = {1,2,3};
af.setAttributeIndicesArray(i);
af.setInputFormat(data);
Instances ins = Filter.useFilter(data,af);
System.out.println(ins);
Comments
Post a Comment