spark.core.payloads#
Classes#
Abstract payload definition to validate exchanges between SparkModule's. |
|
Representation of a collection of spike events. |
|
Abstract payload definition to single value payloads. |
|
Representation of a collection of currents. |
|
Representation of a collection of membrane potentials. |
|
Representation of an inhibitory boolean mask. |
|
Representation of an integer mask. |
|
Representation of a float array. |
|
Representation of an integer array. |
Module Contents#
- class spark.core.payloads.SparkPayload[source]#
Bases:
abc.ABCAbstract payload definition to validate exchanges between SparkModule’s.
- class spark.core.payloads.SpikeArray(spikes, inhibition_mask=False, async_spikes=False)[source]#
Bases:
SparkPayloadRepresentation of a collection of spike events.
- Init:
spikes: jax.Array[bool], True if neuron spiked, False otherwise inhibition_mask: jax.Array[bool], True if neuron is inhibitory, False otherwise
The async_spikes flag is automatically set True by delay mechanisms that perform neuron-to-neuron specific delays. Note that when async_spikes is True the shape of the spikes changes from (origin_units,) to (origin_units, target_units). This is important when implementing new synaptic models, since fully valid synaptic models should be able to handle both cases.
- class spark.core.payloads.ValueSparkPayload[source]#
Bases:
SparkPayload,abc.ABCAbstract payload definition to single value payloads.
- class spark.core.payloads.CurrentArray[source]#
Bases:
ValueSparkPayloadRepresentation of a collection of currents.
- class spark.core.payloads.PotentialArray[source]#
Bases:
ValueSparkPayloadRepresentation of a collection of membrane potentials.
- class spark.core.payloads.BooleanMask[source]#
Bases:
ValueSparkPayloadRepresentation of an inhibitory boolean mask.
- class spark.core.payloads.IntegerMask[source]#
Bases:
ValueSparkPayloadRepresentation of an integer mask.
- class spark.core.payloads.FloatArray[source]#
Bases:
ValueSparkPayloadRepresentation of a float array.
- class spark.core.payloads.IntegerArray[source]#
Bases:
ValueSparkPayloadRepresentation of an integer array.