Package org.encog.workbench.dialogs.createnetwork

Examples of org.encog.workbench.dialogs.createnetwork.CreateFeedforward.process()


    CreateFeedforward dialog = new CreateFeedforward(EncogWorkBench
        .getInstance().getMainWindow());
    dialog.setActivationFunctionHidden(new ActivationTANH());
    dialog.setActivationFunctionOutput(new ActivationTANH());
   
    if (dialog.process()) {
      FeedForwardPattern feedforward = new FeedForwardPattern();
      feedforward.setActivationFunction(dialog.getActivationFunctionHidden());
      feedforward.setActivationOutput(dialog.getActivationFunctionOutput());
      feedforward.setInputNeurons(dialog.getInputCount().getValue());
      for (int i = 0; i < dialog.getHidden().getModel().size(); i++) {
View Full Code Here


      String str = "Hidden Layer " + (i + 1) + ": " + num + " neurons";
      dialog.getHidden().getModel().addElement(str);
    }
    dialog.setActivationFunctionHidden(oldActivationHidden);

    if (dialog.process()) {
      // decide if entire network is to be recreated
      if ((dialog.getActivationFunctionHidden() != oldActivationHidden)
          || (dialog.getActivationFunctionOutput() != oldActivationOutput)
          || dialog.getHidden().getModel().size() != (network
              .getLayerCount() - 2)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.