Package org.encog.ml.prg.generator

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


    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

Related Classes of org.encog.ml.prg.generator.PrgGrowGenerator

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.