Like so: this does not remove any features.
Remove remove = new Remove();This works just fine, though:
remove.setInputFormat(instances);
remove.setAttributeIndices("7,10,100");
remove.setInvertSelection(true); // delete the other ones.
Instances out = Filter.useFilter(instances, remove);
Remove remove = new Remove();How are you supposed to find that out?
remove.setAttributeIndices("7,10,100");
remove.setInvertSelection(true); // delete the other ones.
remove.setInputFormat(instances);
Instances out = Filter.useFilter(instances, remove);
1 comment:
Ouch.
Post a Comment