|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.BasicML
org.encog.ml.ea.population.BasicPopulation
org.encog.ml.prg.train.PrgPopulation
public class PrgPopulation
A population that contains EncogProgram's. The primary difference between this class and BasicPopulation is that a "compute" method is provided that automatically uses the "best" genome to provide a MLRegression compute method. This population type also holds the common context that all of the EncogProgram genomes make use of.
Constructor Summary | |
---|---|
PrgPopulation(EncogProgramContext theContext,
int thePopulationSize)
Construct the population. |
Method Summary | |
---|---|
MLData |
compute(MLData input)
Compute the output from the best Genome. |
void |
dumpMembers(int i)
Dump the specified number of genomes. |
EncogProgramContext |
getContext()
|
int |
getInputCount()
|
int |
getOutputCount()
|
Methods inherited from class org.encog.ml.ea.population.BasicPopulation |
---|
clear, createSpecies, determineBestSpecies, flatten, getBestGenome, getGenomeFactory, getMaxIndividualSize, getName, getPopulationSize, getSpecies, purgeInvalidGenomes, setBestGenome, setGenomeFactory, setName, setPopulationSize, size, updateProperties |
Methods inherited from class org.encog.ml.BasicML |
---|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrgPopulation(EncogProgramContext theContext, int thePopulationSize)
theContext
- The context.thePopulationSize
- The population size.Method Detail |
---|
public MLData compute(MLData input)
compute
in interface MLRegression
input
- The input to the
public void dumpMembers(int i)
i
- The specified number of genomes.public EncogProgramContext getContext()
public int getInputCount()
getInputCount
in interface MLInput
public int getOutputCount()
getOutputCount
in interface MLOutput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |