Package ca.nengo.model.plasticity.impl

Examples of ca.nengo.model.plasticity.impl.PESTermination


   * @param rate learning rate
   * @param oja whether or not to use Oja smoothing
   */
  public void learn(String learnTerm, String modTerm, float rate, boolean oja) {
    for(int i=0; i < myNumNodes; i++) {
      PESTermination term;
      try {
        term = (PESTermination)myNodes[i].getTermination(learnTerm);
      }
      catch(StructuralException se) {
        //term does not exist on this node
        term=null;
      }
      catch(ClassCastException se) {
        //term is not a PESTermination
        term=null;
      }
     
      if(term != null) {
        term.setLearningRate(rate);
        term.setOja(oja);
        term.setOriginName("X");
        term.setModTermName(modTerm);
      }
    }
   
  }
View Full Code Here


            PlasticNodeTermination[] pnts = new PlasticNodeTermination[components.length];
            for (int i=0; i<components.length; i++) {
                pnts[i] = (PlasticNodeTermination) components[i];
            }

            result = new PESTermination(this, name, pnts);

            // Set the number of tasks equal to the number of threads
            int numTasks = ca.nengo.util.impl.NodeThreadPool.getNumJavaThreads();
            numTasks = numTasks < 1 ? 1 : numTasks;
View Full Code Here

TOP

Related Classes of ca.nengo.model.plasticity.impl.PESTermination

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.