spark.nn.components.somas.base#

Attributes#

Classes#

SomaOutput

Generic soma model output spec.

SomaConfig

Abstract soma model configuration class.

Soma

Abstract soma model.

Module Contents#

class spark.nn.components.somas.base.SomaOutput[source]#

Bases: TypedDict

Generic soma model output spec.

Initialize self. See help(type(self)) for accurate signature.

spikes: spark.core.payloads.SpikeArray[source]#
potential: spark.core.payloads.PotentialArray[source]#
class spark.nn.components.somas.base.SomaConfig(__skip_validation__=False, **kwargs)[source]#

Bases: spark.nn.components.base.ComponentConfig

Abstract soma model configuration class.

Parameters:

__skip_validation__ (bool)

spark.nn.components.somas.base.ConfigT[source]#
class spark.nn.components.somas.base.Soma(config=None, **kwargs)[source]#

Bases: spark.nn.components.base.Component, Generic[ConfigT]

Abstract soma model.

Parameters:

config (ConfigT | None)

config: ConfigT[source]#
build(input_specs)[source]#

Build method.

Parameters:

input_specs (dict[str, spark.core.specs.PortSpecs])

reset()[source]#

Resets neuron states to their initial values.

__call__(current)[source]#

Update neuron’s states and compute spikes.

Parameters:

current (spark.core.payloads.CurrentArray)

Return type:

SomaOutput