PySNN Documentation

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 and Connection objects together form a layer, as well as the layer type.

Parameters
  • name – Name of the layer

  • connectionConnection object

  • neuronNeuron 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 and Neuron of the layer, as well as the layer type.