MLDataSet trainingSet = new BasicMLDataSet(input, output);
// train the neural network
MLTrain train = new Backpropagation(network, trainingSet, 0.7, 0.7);
Stopwatch sw = new Stopwatch();
sw.start();
// run epoch of learning procedure
for (int i = 0; i < ITERATIONS; i++) {
train.iteration();
}
sw.stop();
return sw.getElapsedMilliseconds();
}