May just need an extra test, ie:
// Detect if data available; set to testing data if not
Collection<File> testList = FileUtils.listFiles(new File(Parameters.getInputDirectoryInitialPopulations()), new String[]{"csv"}, false);
if (testList.size()==0)
Parameters.setTrainingFlag(true);
May just need an extra test, ie: