Package org.encog.neural.thermal

Examples of org.encog.neural.thermal.HopfieldNetwork.addPattern()


   
    HopfieldNetwork hopfieldLogic = new HopfieldNetwork(WIDTH*HEIGHT);

    for(int i=0;i<PATTERN.length;i++)
    {
      hopfieldLogic.addPattern(convertPattern(PATTERN,i));
    }
   
    evaluate(hopfieldLogic,PATTERN);
    evaluate(hopfieldLogic,PATTERN2);
  }
View Full Code Here


      if (method instanceof HopfieldNetwork) {
        HopfieldNetwork hp = (HopfieldNetwork) method;
        ProjectEGFile file = (ProjectEGFile) dialog.getComboNetwork()
            .getSelectedValue();
        for (MLDataPair pair : trainingData) {
          hp.addPattern(pair.getInput());
        }
        if (EncogWorkBench.askQuestion("Hopfield",
            "Training done, save?")) {
          file.save();
        }
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.