pysnn.network
pysnn.network¶
-
class
pysnn.network.
SNNNetwork
¶ Base clase for defining SNN network, contains several convenience operators for network simulations.
-
reset_state
()¶ Resets state parameters of all submodules, requires each submodule to have a reset_state function.
-
add_layer
(name, connection, neuron)¶ Adds which
Neuron
andConnection
objects together form a layer, as well as the layer type.- Parameters
name – Name of the layer
connection –
Connection
objectneuron –
Neuron
object
-
layer_state_dict
()¶ Return state dicts grouped per layer, so a single Connection and a single Neuron state dict per layer.
- Returns
State Dicts for the
Connection
andNeuron
of the layer, as well as the layer type.
-