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

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


    }

  }

  private void performGenetic(ProjectEGFile file, MLDataSet trainingData) {
    InputGenetic dialog = new InputGenetic();
    if (dialog.process()) {
      final int populationSize = dialog.getPopulationSize().getValue();
      final double mutationPercent = dialog.getMutationPercent()
          .getValue();
      final double percentToMate = dialog.getPercentToMate().getValue();

      CalculateScore score = new TrainingSetScore(trainingData);
      final NeuralGeneticAlgorithm train = new NeuralGeneticAlgorithm(
          (BasicNetwork) file.getObject(),
          new RangeRandomizer(-1, 1), score, populationSize,
          mutationPercent, percentToMate);
      train.setTraining(trainingData);
      startup(file, train, dialog.getMaxError().getValue() / 100.0);
    }

  }
View Full Code Here

TOP

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

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.