127128129130131132133134135136137
final CrossValidationKFold trainFolded = new CrossValidationKFold(train,4); int epoch = 1; do { trainFolded.iteration(); System.out .println("Epoch #" + epoch + " Error:" + trainFolded.getError()); epoch++; } while (trainFolded.getError() > MAX_ERROR); }