// Get all instances
Instances train = getTrainInstances(trainArff);
test = getTestInstances(testArff);
// Apply log filter
Filter logFilter = new LogFilter();
logFilter.setInputFormat(train);
train = Filter.useFilter(train, logFilter);
logFilter.setInputFormat(test);
test = Filter.useFilter(test, logFilter);
Classifier clsCopy;
try {
// Copy the classifier