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

Popular posts from this blog

Java encoding : UTF-8, Big5, x-MS950-HKSCS