Package org.neuroph.core.learning

Examples of org.neuroph.core.learning.SupervisedTrainingElement


  private double determineError(TrainingSet trainingSet) {
    double result = 0d;

    Iterator<TrainingElement> iterator = trainingSet.iterator();
    while (iterator.hasNext() && !isStopped()) {
      SupervisedTrainingElement supervisedTrainingElement = (SupervisedTrainingElement) iterator
          .next();
      double[] input = supervisedTrainingElement.getInput();
      this.neuralNetwork.setInput(input);
      this.neuralNetwork.calculate();
      double[] output = this.neuralNetwork.getOutput();
      double[] desiredOutput = supervisedTrainingElement
          .getDesiredOutput();
      double[] patternError = this.getPatternError(output, desiredOutput);
      this.updateTotalNetworkError(patternError);

      double sqrErrorSum = 0;
View Full Code Here


        System.out.print(traininput[index]+" ");
        index++;
        }
        trainoutput [0] = r.nextDouble();
        System.out.println(trainoutput[0]);
        trainingSet.addElement(new SupervisedTrainingElement(traininput, trainoutput));
       
        }
        if(point >= prevpoint){
            myNeuralNetwork.learnInSameThread(trainingSet);
        }else{
View Full Code Here

TOP

Related Classes of org.neuroph.core.learning.SupervisedTrainingElement

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.