spark.nn.interfaces.input.topological#
Classes#
Base TopologicalSpiker configuration class. |
|
TopologicalPoissonSpiker configuration class. |
|
Transforms a continuous signal to a spiking signal. |
|
TopologicalLinearSpiker configuration class. |
|
Transforms a continuous signal to a spiking signal. |
Module Contents#
- class spark.nn.interfaces.input.topological.TopologicalSpikerConfig(__skip_validation__=False, **kwargs)[source]#
Bases:
spark.nn.interfaces.input.base.InputInterfaceConfigBase TopologicalSpiker configuration class.
- Parameters:
__skip_validation__ (bool)
- class spark.nn.interfaces.input.topological.TopologicalPoissonSpikerConfig(__skip_validation__=False, **kwargs)[source]#
Bases:
TopologicalSpikerConfig,spark.nn.interfaces.input.poisson.PoissonSpikerConfigTopologicalPoissonSpiker configuration class.
- Parameters:
__skip_validation__ (bool)
- class spark.nn.interfaces.input.topological.TopologicalPoissonSpiker(config=None, **kwargs)[source]#
Bases:
spark.nn.interfaces.input.base.InputInterfaceTransforms a continuous signal to a spiking signal. This transformation maps a vector (a point in a hypercube) into a simple manifold with/without its borders glued. This transformation assumes a very simple poisson neuron model without any type of adaptation or plasticity.
- Init:
glue: jax.Array mins: jax.Array maxs: jax.Array resolution: int max_freq: float [Hz] sigma: float
- Input:
signal: FloatArray
- Output:
spikes: SpikeArray
- Parameters:
config (TopologicalPoissonSpikerConfig | None)
- build(input_specs)[source]#
Build method.
- Parameters:
input_specs (dict[str, spark.core.specs.PortSpecs])
- Return type:
None
- __call__(signal)[source]#
Input interface operation.
Input: A FloatArray of values in the range [mins, maxs]. Output: A SpikeArray of the same shape as the input.
- Parameters:
signal (spark.core.payloads.FloatArray)
- Return type:
- class spark.nn.interfaces.input.topological.TopologicalLinearSpikerConfig(__skip_validation__=False, **kwargs)[source]#
Bases:
TopologicalSpikerConfig,spark.nn.interfaces.input.linear.LinearSpikerConfigTopologicalLinearSpiker configuration class.
- Parameters:
__skip_validation__ (bool)
- class spark.nn.interfaces.input.topological.TopologicalLinearSpiker(config=None, **kwargs)[source]#
Bases:
spark.nn.interfaces.input.base.InputInterfaceTransforms a continuous signal to a spiking signal. This transformation maps a vector (a point in a hypercube) into a simple manifold with/without its borders glued. This transformation assumes a very simple linear neuron model without any type of adaptation or plasticity.
- Init:
glue: jax.Array mins: jax.Array maxs: jax.Array resolution: int tau: float [ms] cd: float [ms] max_freq: float [Hz] sigma: float
- Input:
signal: FloatArray
- Output:
spikes: SpikeArray
- Parameters:
config (TopologicalLinearSpikerConfig | None)
- build(input_specs)[source]#
Build method.
- Parameters:
input_specs (dict[str, spark.core.specs.PortSpecs])
- Return type:
None
- __call__(signal)[source]#
Input interface operation.
Input: A FloatArray of values in the range [mins, maxs]. Output: A SpikeArray of the same shape as the input.
- Parameters:
signal (spark.core.payloads.FloatArray)
- Return type: