Examples of NEATTraining


Examples of org.encog.neural.neat.training.NEATTraining

    CalculateScore score = new TrainingSetScore(trainingSet);
    // train the neural network
    ActivationStep step = new ActivationStep();
    step.setCenter(0.5);
   
    NEATTraining train = new NEATTraining(
        score, 2, 1, 10);
    //train.setOutputActivationFunction(step);
   
    return (NEATPopulation)train.getPopulation();
  }
View Full Code Here

Examples of org.encog.neural.neat.training.NEATTraining

    Assert.assertEquals(0.3,pop.getYoungScoreBonus());
   
    // see if the population can actually be used to train
    MLDataSet trainingSet = new BasicMLDataSet(XOR.XOR_INPUT, XOR.XOR_IDEAL);   
    CalculateScore score = new TrainingSetScore(trainingSet);
    NEATTraining train = new NEATTraining(score,pop);
    train.iteration();

  }
View Full Code Here

Examples of org.encog.neural.neat.training.NEATTraining

    // train the neural network
    ActivationStep step = new ActivationStep();
    step.setCenter(0.5);
    pop.setOutputActivationFunction(step);
   
    final NEATTraining train = new NEATTraining(score,pop);
   
    EncogUtility.trainToError(train, 0.01);

    NEATNetwork network = (NEATNetwork)train.getMethod();

    network.clearContext();
    // test the neural network
    System.out.println("Neural Network Results:");
    EncogUtility.evaluate(network, trainingSet);
View Full Code Here

Examples of org.encog.neural.neat.training.NEATTraining

      if (dialog.getLoadToMemory().getValue()) {
        training = ((BufferedNeuralDataSet) training).loadToMemory();
      }

      CalculateScore score = new TrainingSetScore(training);
      NEATTraining train = new NEATTraining(score, pop);

      BasicTrainingProgress tab = new BasicTrainingProgress(train,
          popFile, train.getTraining());
      tab.setMaxError(dialog.getMaxError().getValue() / 100);
      EncogWorkBench.getInstance().getMainWindow().getTabManager().openTab(tab);

    }
  }
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.