///////// Creates the two new files
String small_fileName = fileName.substring(0,1+ fileName.lastIndexOf("\\")).concat("hold_out_").concat(fileName.substring(1+fileName.lastIndexOf("\\"), fileName.length()));
String big_fileName = fileName.substring(0, 1+fileName.lastIndexOf("\\")).concat("learn_").concat(fileName.substring(1+fileName.lastIndexOf("\\"), fileName.length()));
ArffSaver saverSmall = new ArffSaver();
saverSmall.setInstances(smallSet);
saverSmall.setFile(new File(small_fileName));
saverSmall.writeBatch();
ArffSaver saverBig = new ArffSaver();
saverBig.setInstances(bigSet);
saverBig.setFile(new File(big_fileName));
saverBig.writeBatch();
return big_fileName.concat(";").concat(small_fileName);
} catch (Exception e) {
System.out.println(e.toString());