Package org.encog.neural.neat

Examples of org.encog.neural.neat.NEATNetwork.calculateError()


    } 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);
View Full Code Here


    // test the neural network
    Encog.getInstance().shutdown();
    Assert.assertTrue(train.getError()<0.01);
    NEATNetwork network = (NEATNetwork)train.getCODEC().decode(train.getBestGenome());
    Assert.assertTrue(network.calculateError(trainingSet)<0.01);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.