Package org.encog.neural.pattern

Examples of org.encog.neural.pattern.ADALINEPattern


  public static void main(String args[])
  {
    int inputNeurons = CHAR_WIDTH * CHAR_HEIGHT;
    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


public class TestADALINE extends TestCase {

  public void testAdalineNet() throws Throwable
  {
    ADALINEPattern pattern = new ADALINEPattern();
    pattern.setInputNeurons(2);
    pattern.setOutputNeurons(1);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    // train it
    MLDataSet training = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);
    MLTrain train = new TrainAdaline(network,training,0.01);
    NetworkUtil.testTraining(train,0.01);
View Full Code Here

 
  private static MLMethod createADALINE() {
    CreateADALINEDialog dialog = new CreateADALINEDialog(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      ADALINEPattern adaline = new ADALINEPattern();
      adaline.setInputNeurons(dialog.getNeuronCount().getValue());
      adaline.setOutputNeurons(dialog.getElementCount().getValue());
      return adaline.generate();
    } else
      return null;
  }
View Full Code Here

public class TestADALINE extends TestCase {

  public void testAdalineNet() throws Throwable
  {
    ADALINEPattern pattern = new ADALINEPattern();
    pattern.setInputNeurons(2);
    pattern.setOutputNeurons(1);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    // train it
    MLDataSet training = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);
    MLTrain train = new TrainAdaline(network,training,0.01);
    NetworkUtil.testTraining(training,train,0.01);
View Full Code Here

TOP

Related Classes of org.encog.neural.pattern.ADALINEPattern

Copyright © 2018 www.massapicom. 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.