MLDataSet training = generateTraining();
MLTrain train = new TrainAdaline(network,training,0.01);
int epoch = 1;
do {
train.iteration();
System.out
.println("Epoch #" + epoch + " Error:" + train.getError());
epoch++;
} while(train.getError() > 0.01);