Hello, I am trying to use oja and bcm learning rules on connections between individual neurons in nengo simulations.
After getting some errors initially, I modified the following lines in learning_rules.build_bcm and learning_rules.build_oja
pre_activities = model.sig[get_pre_ens(conn).neurons]['out'] post_activities = model.sig[get_post_ens(conn).neurons]['out']
from nengo.builder.connection import slice_signal in_signal = model.sig[conn]['in'] pre_activities = slice_signal(model, in_signal, conn.pre_slice) out_signal = model.sig[conn]['out'] post_activities = slice_signal(model, out_signal, conn.post_slice)
There is likely a better way to implement this, but I wanted to raise this issue to the group in case others are experiencing this issue or if a fix to this could be incorporated into the next nengo update