in.learningRate = 0.1;
in.momentum = 0;
in.inputs = input;
in.targets = output;
ITrainingBuilder trainBuilder = new TrainingBuilder();
ITraining train = trainBuilder.build();
TrainingOutput out = new TrainingOutput(0.00005);
train.train(network, in, out);
System.out.printf("Solution in %d iteration, minError = %f, lastError: %f\n\n", out.lastIterationNumber, out.minError, out.lastError);
final XYSeries series2 = new XYSeries("Prediction");