sebastianmonten / building-a-spiking-neural-network-from-scratch

0 stars 0 forks source link

Feature/6/implement neuron fire queue #7

Closed sebastianmonten closed 3 months ago

sebastianmonten commented 3 months ago

description: A simple SNN with 3 layers: 2, 3, 2 neurons. Each layer has an associated input queue, fast to iterate. For each layer, starting with the last:

  1. Read input
  2. Update affected neurons
  3. If any fire, write that to the input list of the next layer
  4. If an input is already recorded for a post-synaptic neuron, add the new entry to it
  5. Clear the input for this layer

Test run with all weight as zero except 2:

Layer 0 to Layer 1 weights:
Neuron 0: 0.500000 0.000000 0.000000
Neuron 1: 0.000000 0.000000 0.000000

Layer 1 to Layer 2 weights:
Neuron 0: 0.500000 0.000000
Neuron 1: 0.000000 0.000000
Neuron 2: 0.000000 0.000000

closes #6