* @return The lowest number of seconds that each of the ten attempts took.
*/
public static int evaluateTrain(
final BasicNetwork network, final MLDataSet training) {
// train the neural network
MLTrain train;
train = new ResilientPropagation(network, training);
final long start = System.currentTimeMillis();
final long stop = start + (10 * MILIS);
int iterations = 0;
while (System.currentTimeMillis() < stop) {
iterations++;
train.iteration();
}
return iterations;
}