Examples of PrgGrowGenerator


Examples of org.encog.ml.prg.generator.PrgGrowGenerator

   * @param theContext The program context.
   * @param theMaxDepth The maximum depth.
   */
  public SubtreeMutation(final EncogProgramContext theContext,
      final int theMaxDepth) {
    this.generator = new PrgGrowGenerator(theContext, theMaxDepth);
    this.maxDepth = theMaxDepth;
  }
View Full Code Here

Examples of org.encog.ml.prg.generator.PrgGrowGenerator

    EncogProgramContext context = new EncogProgramContext();
    context.defineVariable("x");
   
    StandardExtensions.createAll(context);
   
    PrgGrowGenerator rnd = new PrgGrowGenerator(context,2);
    EncogProgram prg = rnd.generate(new Random());
    RenderCommonExpression render = new RenderCommonExpression();
    String str = render.render(prg);
    System.out.println(str);
  }
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.