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();