Documentation of 'org.encog.ml.prg.train.PrgPopulation' Java class
PrgPopulation
org.encog.ml.prg.train

Class PrgPopulation

  • All Implemented Interfaces:
    java.io.Serializable, Population, MLInput, MLInputOutput, MLMethod, MLOutput, MLProperties, MLRegression


    public class PrgPopulation
    extends BasicPopulation
    implements MLRegression
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • PrgPopulation

        public PrgPopulation(EncogProgramContext theContext,
                             int thePopulationSize)
        Construct the population.
        Parameters:
        theContext - The context.
        thePopulationSize - The population size.
    • Method Detail

      • compute

        public MLData compute(MLData input)
        Compute the output from the best Genome. Note: it is not safe to call this method while training is progressing.
        Specified by:
        compute in interface MLRegression
        Parameters:
        input - The input to the
        Returns:
        The output data.
      • dumpMembers

        public void dumpMembers(int i)
        Dump the specified number of genomes.
        Parameters:
        i - The specified number of genomes.
      • getInputCount

        public int getInputCount()
        Specified by:
        getInputCount in interface MLInput
        Returns:
        The input.
      • getOutputCount

        public int getOutputCount()
        Specified by:
        getOutputCount in interface MLOutput
        Returns:
        The output count.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.