File submitInfoPath = new File(dataPath, "submit-" + now + ".txt");
PrintWriter pw = new PrintWriter(new FileWriter(submitInfoPath));
pw.println("Crossvalidation stats:");
for (int i = 0; i < cross.size(); i++) {
CrossValidateFold fold = cross.getFolds().get(i);
pw.println("Fold #" + (i + 1) + " : Score: " + fold.getScore());
}
pw.println("Average Score: " + cross.getScore());
pw.println();
pw.println(Arrays.toString(bestNetwork.getLongTermMemory()));
pw.close();