Package org.encog.ml.ea.train.basic

Examples of org.encog.ml.ea.train.basic.TrainEA.addOperation()


        new NEATMutateWeights(new SelectProportion(0.02),
            new MutateResetLinkWeight()));
    weightMutation.getComponents().finalizeStructure();

    result.setChampMutation(weightMutation);
    result.addOperation(0.5, new NEATCrossover());
    result.addOperation(0.494, weightMutation);
    result.addOperation(0.0005, new NEATMutateAddNode());
    result.addOperation(0.005, new NEATMutateAddLink());
    result.addOperation(0.0005, new NEATMutateRemoveLink());
    result.getOperators().finalizeStructure();
View Full Code Here


            new MutateResetLinkWeight()));
    weightMutation.getComponents().finalizeStructure();

    result.setChampMutation(weightMutation);
    result.addOperation(0.5, new NEATCrossover());
    result.addOperation(0.494, weightMutation);
    result.addOperation(0.0005, new NEATMutateAddNode());
    result.addOperation(0.005, new NEATMutateAddLink());
    result.addOperation(0.0005, new NEATMutateRemoveLink());
    result.getOperators().finalizeStructure();
View Full Code Here

    weightMutation.getComponents().finalizeStructure();

    result.setChampMutation(weightMutation);
    result.addOperation(0.5, new NEATCrossover());
    result.addOperation(0.494, weightMutation);
    result.addOperation(0.0005, new NEATMutateAddNode());
    result.addOperation(0.005, new NEATMutateAddLink());
    result.addOperation(0.0005, new NEATMutateRemoveLink());
    result.getOperators().finalizeStructure();

    if (population.isHyperNEAT()) {
View Full Code Here

    result.setChampMutation(weightMutation);
    result.addOperation(0.5, new NEATCrossover());
    result.addOperation(0.494, weightMutation);
    result.addOperation(0.0005, new NEATMutateAddNode());
    result.addOperation(0.005, new NEATMutateAddLink());
    result.addOperation(0.0005, new NEATMutateRemoveLink());
    result.getOperators().finalizeStructure();

    if (population.isHyperNEAT()) {
      result.setCODEC(new HyperNEATCODEC());
View Full Code Here

    result.setChampMutation(weightMutation);
    result.addOperation(0.5, new NEATCrossover());
    result.addOperation(0.494, weightMutation);
    result.addOperation(0.0005, new NEATMutateAddNode());
    result.addOperation(0.005, new NEATMutateAddLink());
    result.addOperation(0.0005, new NEATMutateRemoveLink());
    result.getOperators().finalizeStructure();

    if (population.isHyperNEAT()) {
      result.setCODEC(new HyperNEATCODEC());
    } else {
View Full Code Here

    final CalculateScore score = new TrainingSetScore(training);   
    TrainEA train = new TrainEA(pop, score);
    train.getRules().addRewriteRule(new RewriteConstants());
    train.getRules().addRewriteRule(new RewriteAlgebraic());
    train.setCODEC(new PrgCODEC());
    train.addOperation(0.8, new SubtreeCrossover());
    train.addOperation(0.1, new SubtreeMutation(pop.getContext(),4));
    train.addOperation(0.1, new ConstMutation(pop.getContext(),0.5,1.0));
    train.addScoreAdjuster(new ComplexityAdjustedScore());
    train.setSpeciation(new PrgSpeciation());
    return train;
View Full Code Here

    TrainEA train = new TrainEA(pop, score);
    train.getRules().addRewriteRule(new RewriteConstants());
    train.getRules().addRewriteRule(new RewriteAlgebraic());
    train.setCODEC(new PrgCODEC());
    train.addOperation(0.8, new SubtreeCrossover());
    train.addOperation(0.1, new SubtreeMutation(pop.getContext(),4));
    train.addOperation(0.1, new ConstMutation(pop.getContext(),0.5,1.0));
    train.addScoreAdjuster(new ComplexityAdjustedScore());
    train.setSpeciation(new PrgSpeciation());
    return train;
  }
View Full Code Here

    train.getRules().addRewriteRule(new RewriteConstants());
    train.getRules().addRewriteRule(new RewriteAlgebraic());
    train.setCODEC(new PrgCODEC());
    train.addOperation(0.8, new SubtreeCrossover());
    train.addOperation(0.1, new SubtreeMutation(pop.getContext(),4));
    train.addOperation(0.1, new ConstMutation(pop.getContext(),0.5,1.0));
    train.addScoreAdjuster(new ComplexityAdjustedScore());
    train.setSpeciation(new PrgSpeciation());
    return train;
  }
}
View Full Code Here

    CalculateScore score = new ZeroEvalScoreFunction();

    TrainEA genetic = new TrainEA(pop, score);
    genetic.setValidationMode(true);
    genetic.setCODEC(new PrgCODEC());
    genetic.addOperation(0.95, new SubtreeCrossover());
    genetic.addOperation(0.05, new SubtreeMutation(context,4));
    genetic.addScoreAdjuster(new ComplexityAdjustedScore());
    genetic.getRules().addRewriteRule(new RewriteConstants());
    genetic.getRules().addRewriteRule(new RewriteAlgebraic());
View Full Code Here

    TrainEA genetic = new TrainEA(pop, score);
    genetic.setValidationMode(true);
    genetic.setCODEC(new PrgCODEC());
    genetic.addOperation(0.95, new SubtreeCrossover());
    genetic.addOperation(0.05, new SubtreeMutation(context,4));
    genetic.addScoreAdjuster(new ComplexityAdjustedScore());
    genetic.getRules().addRewriteRule(new RewriteConstants());
    genetic.getRules().addRewriteRule(new RewriteAlgebraic());

    EncogProgram expression = new EncogProgram(context);
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.