} while(train.getError() > 0.01 && train.getIteration()<10000);
Encog.getInstance().shutdown();
NEATNetwork network = (NEATNetwork)train.getCODEC().decode(train.getBestGenome());
Assert.assertTrue(train.getError()<0.01);
Assert.assertTrue(network.calculateError(buffer)<0.01);
}
public void testNEAT() {
MLDataSet trainingSet = new BasicMLDataSet(XOR.XOR_INPUT, XOR.XOR_IDEAL);
NEATPopulation pop = new NEATPopulation(2,1,1000);