Package org.encog.workbench.dialogs.population

Examples of org.encog.workbench.dialogs.population.NewPopulationDialog


      trainingData.endLoad();
    }
  }
 
  private static void createNewPopulation(File path) {
    NewPopulationDialog dialog = new NewPopulationDialog();

    if (dialog.process()) {
      int populationSize = dialog.getPopulationSize().getValue();
      int inputCount = dialog.getInputNeurons().getValue();
      int outputCount = dialog.getOutputNeurons().getValue();
      boolean snapshot = dialog.getSnapshot().getValue();
      NEATPopulation pop = new NEATPopulation(inputCount,outputCount,populationSize);
      pop.setSnapshot(snapshot);
      pop.setNeatActivationFunction(dialog.getNeatActivationFunction());
      pop.setOutputActivationFunction(dialog.getOutputActivationFunction());
      EncogWorkBench.getInstance().save(path,pop);
      EncogWorkBench.getInstance().refresh();
    }
  }
View Full Code Here

TOP

Related Classes of org.encog.workbench.dialogs.population.NewPopulationDialog

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.