A sandbox repo to play around with automatic differentiation.
The goal is to reproduce this tutorial from Zenke.
A starting point is in minimal_example.jl
,
where we aim to show that surrogate gradients work for a two coupled neurons.
We define a LIF neuron with dynamics:
Furthermore the neurons are equipped with a reset:
(We work with
In order for the gradients to flow,
we have to replace the gradients of the reset and those of the Heaviside step function
The main simulation is in Zenke.jl
,
with some helper functions defined in the other files,
which are imported in this main file.