Auryn simulator

Simulator for spiking neural networks with synaptic plasticity

User Tools

Site Tools


manual:sparseconnection

This is an old revision of the document!


The Sparse Connection Class

SparseConnections are used to connect neuron groups with static synapses that are generally initialized randomly with sparse entries. The connection can just as well be loaded from a wmat file or with some tinkering can be influenced directly from within the model file. The underlying connection matrix is stored in the SimpleMatrix format which allows efficient propagate on spikes. Since almost all connections in Auryn inherit from SparseConnection the basic functionally as how to connect and initalize any connection object remain the same throughout.

Initializing with random sparse connectivity

A standard call to the class might look like the following

SparseConnection(SpikingGroup * source, 
    NeuronGroup * destination, 
    AurynWeight weight, 
    AurynFloat sparseness=0.05, 
    TransmitterType transmitter=GLUT, 
    string name="SparseConnection");

where the source has to be a child of SpikingGroup and destination has to be derived from NeuronGroup. The third parameter (weight in this case) represents the value of the synaptic strength in units of the leak conductance of the postsynaptic neuron. When initialized with a given weight and sparseness the constructor will connect the two groups in an all-to-all fashion with an overall connection probability which is given by sparseness. The transmitter parameter (GABA in the example) specifies the target state variable to act on. Allowed values are of TransmitterType such as GLUT (mostly a synonym for AMPA and NMDA depending on the neuron model), GABA for inhibitory conductances. It is also possible to only target NMDA channels or the membrane voltage directly (MEM), which allows to implement current based models. In the latter case the synaptic weight has to be interpreted in units of voltage. Finally, one can specify a connection name which alternatively can also be set via the set_name(string name) member function. Connection names are used in debug output, the wmat dump, and in the log file and help to identify connections.

Initializing connections from a file

SparseConnection has another constructor that allows to initialize the connection matrix directly from a file.

SparseConnection(SpikingGroup * source, 
    NeuronGroup * destination, 
    const char * filename, 
    TransmitterType transmitter=GLUT);

Instead of the arguments weight and sparseness you can pass the filename argument to specify a wmat file from which the connection will be initialized. Note that particularly when running simulations in parallel this file should only contain the elements of the connection matrix that are also stored on the respective rank where the code is issued. This is generally the case if the weight matrix has been saved during a run of the same model run on the equal amount of nodes/ranks. If this is not the case the creation of such matrices might require a more in depth understanding on how auryn distributes neurons and synapses over the existing computing resources (see also load balancing).

manual/sparseconnection.1381391981.txt.gz · Last modified: 2013/10/10 07:59 (external edit)