org.encog.ml.prg.generator
public class PrgFullGenerator extends AbstractPrgGenerator
Constructor and Description |
---|
PrgFullGenerator(EncogProgramContext theContext,
int theMaxDepth)
Construct the full generator.
|
Modifier and Type | Method and Description |
---|---|
ProgramNode |
createNode(Random rnd,
EncogProgram program,
int depthRemaining,
List<ValueType> types)
Create a random node for an Encog Program.
|
addPopulationMember, attemptCreateGenome, createRandomNode, createTerminalNode, determineMaxDepth, generate, generate, generateRandomOpcode, getContext, getMaxConst, getMaxDepth, getMaxGenerationErrors, getMinConst, getRandomFactory, getScore, getThreadCount, isHasEnum, setMaxConst, setMaxGenerationErrors, setMinConst, setRandomFactory, setScore, setThreadCount
public PrgFullGenerator(EncogProgramContext theContext, int theMaxDepth)
theContext
- The context.theMaxDepth
- The max depth.public ProgramNode createNode(Random rnd, EncogProgram program, int depthRemaining, List<ValueType> types)
rnd
- Random number generator.program
- The program that the node should be generated for.depthRemaining
- The depth remaining to generate.types
- The types to generate.Copyright © 2014. All Rights Reserved.