Skip to content

Commit

Permalink
mod to mstdpet syn
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 16, 2024
1 parent 6f1d204 commit e5c3176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngclearn/components/synapses/modulated/MSTDPETSynapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _evolve(dt, w_bound, preTrace_target, mu, Aplus, Aminus, tau_elg,
dWeights * modulator,
jnp.clip(dWeights, max=0.) * -modulator)
else:
dWeights = eligibility * output_mask * modulator
dWeights = eligibility * modulator

## do a gradient ascent update/shift
weights = weights + dWeights * eta ## modulate update
Expand Down

0 comments on commit e5c3176

Please sign in to comment.