Package org.encog.ml.prg

Examples of org.encog.ml.prg.EncogProgram.compute()


  public double calculateScore(final MLMethod genome) {
    final EncogProgram prg = (EncogProgram) genome;
    final PrgPopulation pop = (PrgPopulation) prg.getPopulation();
    final MLData inputData = new BasicMLData(pop.getContext()
        .getDefinedVariables().size());
    prg.compute(inputData);
    return 0;
  }

  /**
   * {@inheritDoc}
 
View Full Code Here


   *            The input to the
   */
  @Override
  public MLData compute(final MLData input) {
    final EncogProgram best = (EncogProgram) getBestGenome();
    return best.compute(input);
  }

  /**
   * Dump the specified number of genomes.
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.