Package org.encog.workbench.dialogs.trainingdata

Examples of org.encog.workbench.dialogs.trainingdata.RandomTrainingDataDialog


      EncogUtility.saveCSV(targetFile, CSVFormat.ENGLISH, trainingData);
    }
  }

  public static void generateRandom(String name) throws IOException {
    RandomTrainingDataDialog dialog = new RandomTrainingDataDialog(
        EncogWorkBench.getInstance().getMainWindow());

    dialog.getHigh().setValue(1);
    dialog.getLow().setValue(-1);

    if (dialog.process()) {
      double high = dialog.getHigh().getValue();
      double low = dialog.getLow().getValue();
      int elements = dialog.getElements().getValue();
      int input = dialog.getColumns().getValue();

      File targetFile = new File(EncogWorkBench.getInstance()
          .getProjectDirectory(), name);

      MLDataSet trainingData = RandomTrainingFactory.generate(
View Full Code Here

TOP

Related Classes of org.encog.workbench.dialogs.trainingdata.RandomTrainingDataDialog

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.