public void removeNameFilter(String[] names) throws Exception {
if (_logger.isDebugEnabled()) {
_logger.debug("Applying remove type filter");
}
// Might employ filtered classifier for production
MultiFilter mf = new MultiFilter();
String[] options = new String[names.length * 2];
for (int i = 0; i < options.length; i++) {
if (i % 2 == 0) {
options[i] = "-F";
} else {
options[i] = "weka.filters.unsupervised.attribute.Remove -R " + _attributeMap.get(names[i / 2]);
}
}
mf.setOptions(options);
mf.setInputFormat(_instances);
_instances = Filter.useFilter(_instances, mf);
}