Package org.encog.neural.networks.training.simple

Examples of org.encog.neural.networks.training.simple.TrainAdaline


    pattern.setOutputNeurons(outputNeurons);
    BasicNetwork network = (BasicNetwork)pattern.generate();
   
    // train it
    MLDataSet training = generateTraining();
    MLTrain train = new TrainAdaline(network,training,0.01);
   
    int epoch = 1;
    do {
      train.iteration();
      System.out
          .println("Epoch #" + epoch + " Error:" + train.getError());
      epoch++;
    } while(train.getError() > 0.01);
   
    //
    System.out.println("Error:" + network.calculateError(training));
   
    // test it
View Full Code Here


    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 void performADALINE(ProjectEGFile file, MLDataSet trainingData) {
    InputADALINE dialog = new InputADALINE();
    if (dialog.process()) {
      double learningRate = dialog.getLearningRate().getValue();

      MLTrain train = new TrainAdaline((BasicNetwork) file.getObject(),
          trainingData, learningRate);
      startup(file, train, dialog.getMaxError().getValue() / 100.0);
    }

  }
View Full Code Here

    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.networks.training.simple.TrainAdaline

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.