// train the neural network
ActivationStep step = new ActivationStep();
step.setCenter(0.5);
pop.setOutputActivationFunction(step);
final NEATTraining train = new NEATTraining(score,pop);
EncogUtility.trainToError(train, 0.01);
NEATNetwork network = (NEATNetwork)train.getMethod();
network.clearContext();
// test the neural network
System.out.println("Neural Network Results:");
EncogUtility.evaluate(network, trainingSet);