remove dummy section from plasticity setup#878
remove dummy section from plasticity setup#878samnemo wants to merge 7 commits intosuny-downstate-medical-center:stdp_no_dummyfrom
Conversation
…acts in color plots
…ate-medical-center/development PR from development to master - VERSION 1.1.1
|
COMMENT STDP + RL weight adjuster mechanism Original STDP code adapted from: Adapted to implement a "nearest-neighbor spike-interaction" model (see Example Python usage: from neuron import h Create cellsncells = 2 Create synapsesthreshold = 10 # Set voltage threshold Version: 2013oct24 by cliffk in the latest version, the mechanism is changed from a point process into an artificial cell ENDCOMMENT NEURON { ASSIGNED { INITIAL { PARAMETER { NET_RECEIVE (w) { deltaw = 0.0 : Default the weight change to 0. : if (verbose > 0) { printf("t=%f (BEFORE) tlaspre=%f, tlastpost=%f, flag=%f, w=%f, deltaw=%f \n",t,tlastpre, tlastpost,flag,w,deltaw) } : Hebbian weight update happens 1ms later to check for simultaneous spikes (otherwise bug when using mpi) : If we receive a non-negative weight value, we are receiving a pre-synaptic spike (and thus need to check for an anti-Hebbian event, PROCEDURE force_change_weight (reinf) { PROCEDURE reward_punish (reinf) { FUNCTION hebbRL () { : RL from pre before post spiking FUNCTION antiRL () { : RL from post before pre spiking FUNCTION softthreshold (rawwc) { PROCEDURE adjustweight (wc) { |
to reduce computational cost of plasticity such as STDP in pointCell (currently n^2 proportional to plastic synapses), should make stdp.mod use ARTIFICIAL_CELL instead of POINT_PROCESS, and not create the dummy section. for pointCells there is no need for point process with access to compartmental model section and its overhead.
for compartmental models that require plasticity mechanisms that interacts with e.g. transmembrane current, ion channel currents (calcium), other intracellular mechanisms, could make an option to use point process for the more biologically detailed models of plasticity. for simple stdp, even compartmental models will not need point process.