This package defines the API for model definition in mozaik, and the mozaik.models.retinal subpackage contains implementations for models of retina.
This module contains the implementation of a Model API.
Each simulation contains one model, that overarches the neural network that has been built using the basic mozaik components (sheets and connectors) and some additional structures such as the recording configurations.
Bases: mozaik.core.BaseComponent
Model encapsulates a mozaik model.
Each mozaik model has to derive from this class, and in its constructor it has to construct the model from the basic mozaik building blocks (sheets and connectors), and set the variable input_layer to the sheet corresponding to the sensory input sheet.
Other Parameters: | |
---|---|
name : str
results_dir : str
rest : bool
null_stimulus_period : float
input_space : ParameterSet
input_space_type : str
|
This method is the core of the model execution control. It ensures that a stimulus is presented to the model, the simulation is ran for the duration of the stimulus, and all the data recorded during this period are retieved from the simulator. It also makes sure a blank stimulus preceds each stimulus presntation.
Parameters : | stimulus : Stimulus
artificial_stimulators : dict
|
---|---|
Returns : | segments : list
sensory_input : object
sim_run_time : float (seconds)
|
Run’s the simulation for tstop time.
Parameters : | tstop : float (seconds)
|
---|---|
Returns : | time : float (seconds)
|
Rests the network. Depending on the self.parameters.reset this is done either by using the pyNN reset function or by presenting a blank stimulus for self.parameters.null_stimulus_period seconds.
This functions has to called to add a new sheet is added to the model.
This functions has to called to add a new connector to the model.
Returns the list of ids of neurons in the model.
Returns the positions of neurons in the model. The positions are return as a dictionary where each key corresponds to a sheet name, and the value contains a 2D array of size (2,number_of_neurons) containing the x and y coordinates of the neurons in the given sheet.
Returns the neuron annotations, as a dictionary with sheet names as keys, and corresponding annotation dictionaries as values.