Package org.encog.workbench.dialogs.createnetwork

Examples of org.encog.workbench.dialogs.createnetwork.CreateAutomatic


    return null;

  }

  private static BasicNetwork createAutomatic() {
    CreateAutomatic dialog = new CreateAutomatic(EncogWorkBench
        .getInstance().getMainWindow());
    dialog.setActivationFunction(new ActivationTANH());
   
    dialog.getWeightTries().setValue(5);
    dialog.getIterations().setValue(25);
    dialog.getWindowSize().setValue(10);

    if (dialog.process()) {
      MLDataSet training = dialog.getTraining();     
     
      if( training == null ) {
        return null;
      }
     
     
      FeedForwardPattern pattern = new FeedForwardPattern();
      pattern.setInputNeurons(training.getInputSize());
      pattern.setOutputNeurons(training.getIdealSize());
   
     
      pattern.setActivationFunction(dialog.getActivationFunction());     
      IncrementalPruneTab tab = new IncrementalPruneTab(
          dialog.getIterations().getValue(),
          dialog.getWeightTries().getValue(),
          dialog.getWindowSize().getValue(),
          training,
          pattern);
     
      for (int i = 0; i < dialog.getHidden().getModel().size(); i++) {
        String str = (String) dialog.getHidden().getModel()
            .getElementAt(i);
       
        String lowStr = BotUtil.extract(str,"low=",".",0);
        String highStr = BotUtil.extract(str,"high=",",",0);
        int low = Integer.parseInt(lowStr);
View Full Code Here

TOP

Related Classes of org.encog.workbench.dialogs.createnetwork.CreateAutomatic

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.