Introduce accelerated "Generation 2" SSM neuron model #409
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding an implementation of a "Generation 2" SSM (with unit tests) for a new spiking neuron model, named
AssociativeLeakyafter its outer-product based read/write semantics.The main thing to review in this PR is the neuron model. I superclassed
SpikingNeuronrather thanLIF. WithLIFI ran into issues with required superclass initializations that are coupled more towards typical spiking neuron models, rather than a flexible new type of associative memory model with many internal projections.So here is my mental model of what is most efficient to discuss:
SpikingNeuron?LIFsemantics regarding returning one or two variables depending on initialization (and instead only return one -- either membrane or spikes)? The motivation for avoiding returning two variables, is that here there exist downstream projections after spiking, which would necessitate extra computations that we don't want.I have my own answers for above (implemented here), but if @jeshraghian disagrees I can change it.
Miscellaneous notes: