Skip to content

Commit

Permalink
mod to stdp syn
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 7, 2024
1 parent d973183 commit a0f6b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngclearn/components/synapses/hebbian/STDPSynapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _compute_update(Aplus, Aminus, tau_plus, tau_minus, preSpike, postSpike,
post_m = (post_tols > 0.) * 1.
pre_m = (pre_tols > 0.) * 1.
t_delta = ((weights * 0 + 1.) * post_tols) - pre_tols.T ## t_delta.shape = weights.shape
t_delta = t_delta * post_m * pre_m
t_delta = t_delta * post_m * pre_m.T
## calculate post-synaptic term
postTerm = jnp.exp(-t_delta/tau_plus)
dWpost = postTerm * (postSpike * Aplus)
Expand Down

0 comments on commit a0f6b19

Please sign in to comment.