Package org.encog.workbench.dialogs.createnetwork

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


      return null;

  }

  private static MLMethod createHopfield() {
    CreateHopfieldDialog dialog = new CreateHopfieldDialog(EncogWorkBench
        .getInstance().getMainWindow());
    if (dialog.process()) {
      HopfieldPattern hopfield = new HopfieldPattern();
      hopfield.setInputNeurons(dialog.getNeuronCount().getValue());
      return hopfield.generate();
    } else
      return null;
  }
View Full Code Here


    this.editor.setText(report.toString());
  }

  private void restructureHopfield() {
    HopfieldNetwork hopfield = (HopfieldNetwork) method;
    CreateHopfieldDialog dialog = new CreateHopfieldDialog(EncogWorkBench
        .getInstance().getMainWindow());
    dialog.getNeuronCount().setValue(hopfield.getNeuronCount());

    if (dialog.process()
        && (hopfield.getNeuronCount() != dialog.getNeuronCount()
            .getValue())) {
      HopfieldPattern pattern = new HopfieldPattern();
      pattern.setInputNeurons(dialog.getNeuronCount().getValue());
      setDirty(true);
      produceReport();
    }
  }
View Full Code Here

TOP

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

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.