Examples of generate()


Examples of org.encog.app.generate.EncogCodeGeneration.generate()

    EncogLogging.log(EncogLogging.LEVEL_DEBUG, "target file:" + targetID);
    EncogLogging.log(EncogLogging.LEVEL_DEBUG, "target language:" + targetLanguage.toString());
   
    EncogCodeGeneration code = new EncogCodeGeneration(targetLanguage);
    code.setEmbedData(embedData);
    code.generate(getAnalyst());   
    code.save(targetFile);
    return false;
  }

  /**
 
View Full Code Here

Examples of org.encog.examples.neural.util.TemporalXOR.generate()

  public static void main(final String args[]) {
   
    ErrorCalculation.setMode(ErrorCalculationMode.RMS);
   
    final TemporalXOR temp = new TemporalXOR();
    final MLDataSet trainingSet = temp.generate(120);

    final BasicNetwork jordanNetwork = JordanXOR.createJordanNetwork();
    final BasicNetwork feedforwardNetwork = JordanXOR
        .createFeedforwardNetwork();
View Full Code Here

Examples of org.encog.ml.prg.generator.PrgGrowGenerator.generate()

    context.defineVariable("x");
   
    StandardExtensions.createAll(context);
   
    PrgGrowGenerator rnd = new PrgGrowGenerator(context,2);
    EncogProgram prg = rnd.generate(new Random());
    RenderCommonExpression render = new RenderCommonExpression();
    String str = render.render(prg);
    System.out.println(str);
  }
}
View Full Code Here

Examples of org.encog.ml.prg.generator.RampedHalfAndHalf.generate()

      }
    }
   
    // generate initial population
    RampedHalfAndHalf generate = new RampedHalfAndHalf(pop.getContext(), 1, 6);   
    generate.generate(new Random(), pop);
  }

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

Examples of org.encog.neural.pattern.ADALINEPattern.generate()

    int outputNeurons = DIGITS.length;
   
    ADALINEPattern pattern = new ADALINEPattern();
    pattern.setInputNeurons(inputNeurons);
    pattern.setOutputNeurons(outputNeurons);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    // train it
    MLDataSet training = generateTraining();
    MLTrain train = new TrainAdaline(network,training,0.01);
   
View Full Code Here

Examples of org.encog.neural.pattern.ART1Pattern.generate()

        .getInstance().getMainWindow());
    if (dialog.process()) {
      ART1Pattern art1 = new ART1Pattern();
      art1.setInputNeurons(dialog.getF1().getValue());
      art1.setOutputNeurons(dialog.getF2().getValue());
      return art1.generate();
    } else
      return null;
 
}
View Full Code Here

Examples of org.encog.neural.pattern.BAMPattern.generate()

        .getInstance().getMainWindow());
    if (dialog.process()) {
      BAMPattern bam = new BAMPattern();
      bam.setF1Neurons(dialog.getLayerACount().getValue());
      bam.setF2Neurons(dialog.getLayerBCount().getValue());
      return bam.generate();
    } else
      return null;
  }
 
  private static MLMethod createBoltzmann() {
View Full Code Here

Examples of org.encog.neural.pattern.BoltzmannPattern.generate()

    CreateBlotzmannDialog dialog = new CreateBlotzmannDialog(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      BoltzmannPattern boltz = new BoltzmannPattern();
      boltz.setInputNeurons(dialog.getNeuronCount().getValue());
      return boltz.generate();
    } else
      return null;
  }
 
  private static MLMethod createCPN() {
View Full Code Here

Examples of org.encog.neural.pattern.CPNPattern.generate()

    if (dialog.process()) {
      CPNPattern cpn = new CPNPattern();
      cpn.setInputNeurons(dialog.getInputCount().getValue());
      cpn.setInstarCount(dialog.getInstarCount().getValue());
      cpn.setOutstarCount(dialog.getOutstarCount().getValue());
      return cpn.generate();
    } else
      return null;
  }
 
  private static MLMethod createART1() {
View Full Code Here

Examples of org.encog.neural.pattern.ElmanPattern.generate()

    ElmanPattern pattern = new ElmanPattern();
    pattern.setActivationFunction(new ActivationSigmoid());
    pattern.setInputNeurons(1);
    pattern.addHiddenLayer(6);
    pattern.setOutputNeurons(1);
    return (BasicNetwork)pattern.generate();
  }

  static BasicNetwork createFeedforwardNetwork() {
    // construct a feedforward type network
    FeedForwardPattern pattern = new FeedForwardPattern();
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.