Package org.encog.ml.genetic.mutate

Examples of org.encog.ml.genetic.mutate.MutatePerturb


    getGenetic().setMutationPercent(mutationPercent);
    getGenetic().setMatingPopulation(percentToMate * 2);
    getGenetic().setPercentToMate(percentToMate);
    getGenetic().setCrossover(
        new Splice(network.getStructure().calculateSize() / 3));
    getGenetic().setMutate(new MutatePerturb(4.0));
    getGenetic().setPopulation(population);
    for (int i = 0; i < population.getPopulationSize(); i++) {
      final BasicNetwork chromosomeNetwork = (BasicNetwork) network
          .clone();
      randomizer.randomize(chromosomeNetwork);
View Full Code Here


    final int s = Math
        .max(defaultSpecies.getMembers().get(0).size() / 5, 1);
    getGenetic().setPopulation(population);

    this.genetic.addOperation(0.9, new Splice(s));
    this.genetic.addOperation(0.1, new MutatePerturb(1.0));
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.genetic.mutate.MutatePerturb

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.