Examples of GenomeComparator


Examples of org.encog.ml.ea.sort.GenomeComparator

    // create the trainer
    this.genetic = new MLMethodGeneticAlgorithmHelper(population,
        calculateScore);
    this.genetic.setCODEC(new MLEncodableCODEC());

    GenomeComparator comp = null;
    if (calculateScore.shouldMinimize()) {
      comp = new MinimizeScoreComp();
    } else {
      comp = new MaximizeScoreComp();
    }
View Full Code Here

Examples of org.encog.ml.genetic.genome.GenomeComparator

    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

Examples of org.encog.ml.genetic.genome.GenomeComparator

      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();

    init();
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.