Commits

Anonymous committed e1eca65

dim of xo[t] and xi[t] can differ

  • Participants
  • Parent commits 1410a28

Comments (0)

Files changed (1)

File pyrnn/elmannet.py

 
         fbr = self.fb_rate
         fbd = self.fb_delay
+        No  = xo.shape[1]
 
         xo[:fbd] = to[:fbd]
         xc[fbd-1] = avc(uc[fbd-1])
         for t in self.ns.time_step[fbd:]:
-            xi[t] = fbr * xo[t-fbd] + (1 - fbr) * to[t-fbd]
+            xi[t,:No] = fbr * xo[t-fbd] + (1 - fbr) * to[t-fbd]
             uc[t] = (1-ec)*uc[t-1] + ec*(dot(wci,xi[t])+dot(wcc,xc[t-1])+bc)
             xc[t] = avc(uc[t])
             uo[t] = dot(woc,xc[t])+bo