{
Instances train = data.trainCV(folds, n, random);
Instances test = data.testCV(folds, n);
// Apply log filter
Filter logFilter = new LogFilter();
logFilter.setInputFormat(train);
train = Filter.useFilter(train, logFilter);
logFilter.setInputFormat(test);
test = Filter.useFilter(test, logFilter);
// Copy the classifier
Classifier classifier = AbstractClassifier.makeCopy(baseClassifier);