tutorials:multiple_synaptic_state_variables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorials:multiple_synaptic_state_variables [2014/12/15 09:12] – Adds walk-through description zenke | tutorials:multiple_synaptic_state_variables [2015/02/09 10:02] – [Tutorial: Multiple Synaptic State Variables] zenke | ||
---|---|---|---|
Line 2: | Line 2: | ||
Let's assume you would like to write a plasticity model in which induced changes to a synapse require some time to percolate through. Consider that inserting for instance additional AMPA receptors into a postsynaptic density takes time... | Let's assume you would like to write a plasticity model in which induced changes to a synapse require some time to percolate through. Consider that inserting for instance additional AMPA receptors into a postsynaptic density takes time... | ||
+ | |||
+ | **Update** As of Auryn 0.5 synapse models with multiple states can be implemented more easily using synaptic state vectors -- see for [[examples: | ||
+ | |||
===== Aims ===== | ===== Aims ===== | ||
Line 66: | Line 69: | ||
This change will now propagate weights stored in '' | This change will now propagate weights stored in '' | ||
- | ==== Evolve | + | ==== Implementing the evolve |
So far the values stored in '' | So far the values stored in '' | ||
Line 78: | Line 81: | ||
Then at the end of '' | Then at the end of '' | ||
<code cpp> | <code cpp> | ||
- | | + | tau_lp = 120; |
- | timestep_lp = 1e-3*tau_lp/ | + | timestep_lp = 1e-3*tau_lp/ |
- | delta_lp = 1.0*timestep_lp/ | + | delta_lp = 1.0*timestep_lp/ |
</ | </ | ||
Here '' | Here '' | ||
Line 86: | Line 89: | ||
Now find the function '' | Now find the function '' | ||
<code cpp> | <code cpp> | ||
- | | + | if ( sys-> |
- | for (AurynLong i = 0 ; i < lpw-> | + | for (AurynLong i = 0 ; i < lpw-> |
- | AurynWeight * wval = w-> | + | |
- | AurynWeight * lpwval = lpw-> | + | |
- | AurynFloat dw = ( wval - lpwval ) * delta_lp; | + | |
- | *lpwval += dw; | + | |
- | } | + | |
} | } | ||
+ | } | ||
</ | </ | ||
- | which now implements the low-pass filter. | + | which now implements the low-pass filter. Importantly, |
tutorials/multiple_synaptic_state_variables.txt · Last modified: 2016/08/18 16:58 by zenke