public final boolean executeCommand(final String args) {
this.kfold = obtainCross();
final MLDataSet trainingSet = obtainTrainingSet();
MLMethod method = obtainMethod();
final MLTrain trainer = createTrainer(method, trainingSet);
EncogLogging.log(EncogLogging.LEVEL_DEBUG, "Beginning training");
performTraining(trainer, method, trainingSet);
final String resourceID = getProp().getPropertyString(
ScriptProperties.ML_CONFIG_MACHINE_LEARNING_FILE);
final File resourceFile = getAnalyst().getScript().resolveFilename(
resourceID);
method = trainer.getMethod();
EncogDirectoryPersistence.saveObject(resourceFile, method);
EncogLogging.log(EncogLogging.LEVEL_DEBUG, "save to:" + resourceID);
return getAnalyst().shouldStopCommand();
}