PrgPopulation
org.encog.ml.prg.train

Class PrgPopulation

    • 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.

SCaVis 1.8 © jWork.org