uni-courses / snncompare

Runs networkx graphs representing spiking neural networks of LIF-neurons on lava-nc or networkx.
GNU Affero General Public License v3.0
2 stars 0 forks source link

The networkx simulation adds input signals after 1 second of simulation, whereas LIF lava does not. #18

Closed a-t-0 closed 2 years ago

a-t-0 commented 2 years ago

Adapt the networkx simulation by adding a delay of 1 timestep before adding the input signals of a spike, such that it runs in sync with the lava LIF simulation.

(Simply delaying entire snn networkx simulation by 1 timestep yields incorrect result as that does not allow for computation of the bias, etc for v[t] and u[t]). Ensure the default values, like bias for v[t], etc are computed at the first/same timestep.

a-t-0 commented 2 years ago

Incorrect hypothesis, the networkx neurons were re-initialised at every step of the simulation.