exp_stdp_post_kernel¶
- exp_stdp_post_kernel(diff: Tensor, learning_rate: float, time_constant: float, **kwargs) Tensor[source]¶
Returns the postsynaptic update for exponential spike-timing dependent plasticity.
\[K_\text{post}(t_\Delta(t)) = \eta \exp\left(-\frac{\lvert t_\Delta(t) \rvert}{\tau} \right) [t_\Delta(t) \geq 0]\]- Parameters:
diff (torch.Tensor) – duration of time, possibly adjusted, between presynaptic and postsynaptic spikes, \(t_\Delta(t)\), in \(\text{ms}\).
learning_rate (float) – learning rate for update component, \(\eta\).
time_constant (float) – time constant of exponential decay for update component, \(\tau\), in \(\text{ms}\).
- Returns:
unreduced update component.
- Return type:
Note
See
SpikeTimeHalfKernelfor more information on the expected inputs and outputs.