Package org.encog.neural.networks.training.genetic

Examples of org.encog.neural.networks.training.genetic.GeneticScoreAdapter


      final int populationSize) {

    this.inputCount = inputCount;
    this.outputCount = outputCount;

    setCalculateScore(new GeneticScoreAdapter(calculateScore));
    setComparator(new GenomeComparator(getCalculateScore()));
    setPopulation(new NEATPopulation(inputCount, outputCount,
        populationSize));

    init();
View Full Code Here


    if (population.size() < 1) {
      throw new TrainingError("Population can not be empty.");
    }

    final NEATGenome genome = (NEATGenome) population.getGenomes().get(0);
    setCalculateScore(new GeneticScoreAdapter(calculateScore));
    setComparator(new GenomeComparator(getCalculateScore()));
    setPopulation(population);
    this.inputCount = genome.getInputCount();
    this.outputCount = genome.getOutputCount();
View Full Code Here

TOP

Related Classes of org.encog.neural.networks.training.genetic.GeneticScoreAdapter

Copyright © 2018 www.massapicom. 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.