org.encog.ml.prg.generator
Interface PrgGenerator
-
- All Superinterfaces:
- PopulationGenerator
- All Known Implementing Classes:
- AbstractPrgGenerator, PrgFullGenerator, PrgGrowGenerator, RampedHalfAndHalf
public interface PrgGenerator extends PopulationGenerator
Generate a random Encog Program.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ProgramNodecreateNode(java.util.Random rnd, EncogProgram program, int depthRemaining, java.util.List<ValueType> types)Create a random node for an Encog Program.intgetMaxGenerationErrors()voidsetMaxGenerationErrors(int maxGenerationErrors)Set the maximum errors to allow during generation.-
Methods inherited from interface org.encog.ml.ea.population.PopulationGenerator
generate, generate
-
-
-
-
Method Detail
-
createNode
ProgramNode createNode(java.util.Random rnd, EncogProgram program, int depthRemaining, java.util.List<ValueType> types)
Create a random node for an Encog Program.- Parameters:
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.- Returns:
- The newly created node.
-
getMaxGenerationErrors
int getMaxGenerationErrors()
- Returns:
- The maximum number of errors to allow during generation.
-
setMaxGenerationErrors
void setMaxGenerationErrors(int maxGenerationErrors)
Set the maximum errors to allow during generation.- Parameters:
maxGenerationErrors- The max errors.
-
-
DMelt 3.0 © DataMelt by jWork.ORG