Package org.encog.workbench.dialogs.training.methods

Examples of org.encog.workbench.dialogs.training.methods.InputNEAT


      this.pi.repaint();
    }
  }

  private void performTrain() {
    InputNEAT dialog = new InputNEAT();
    if (dialog.process()) {
      ProjectEGFile popFile = dialog.getPopulation();
      NEATPopulation pop = (NEATPopulation) popFile.getObject();

      pop.setInputCount(2);
      pop.setOutputCount(1);
      MLDataSet training = dialog.getTrainingSet();

      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

Related Classes of org.encog.workbench.dialogs.training.methods.InputNEAT

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.