miladmozafari / SpykeTorch

High-speed simulator of convolutional spiking neural networks with at most one spike per neuron.
GNU General Public License v3.0
382 stars 101 forks source link

Can traditional STDP weight updating rule be applied in this model? #14

Closed YouAreThere closed 1 year ago

YouAreThere commented 2 years ago

Hello, thanks a lot for the library! I am current trying to realize R-STDP with emerging devices, and is wondering if traditional weight updating rule in STDP can be applied in this model. That is, the _deltaw calculated by STDP/R-STDP being proportional to _exp(-deltat/tau), instead of proportional to w(1-w). Is it possible for the algorithm to work like that? (not a native English speaker here, i apologize if anything conveyed being ambiguous)

miladmozafari commented 1 year ago

Hello,

Thank you for your interest in the library. It is possible to implement the other update rule. You need to redefine the weight update function with your own formulation.