Module containing the experiment API.
Bases: object
The abastract class for an experiment. The experiment defines the list of stimuli that it needs to present to the brain.These stimuli presentations have to be independent - e.g. should not temporarily depend on each other. Experiment should also specify the analysis of the recorded results that it performs. This can be left empty if analysis will be done later.
The experiment has to also define the direct_stimulation variable which should contain a list of dictionaries one per each stimulus. The keys in these dictionaries are sheet names and values are list of mozail.sheets.direct_stimulator.DirectStimulator instances, that specify what direct stimulations should be applied to given layers during the corresponding stimulus. Layers to which no direct stimulation is applied can stay empty. Also if the direct_stimulation is set to None, empty dictionaries will be automatically passed to the model, indicating no direct stimulation is required.
Parameters : | model : Model
|
---|
This function is called by mozaik to retrieve the list of stimuli the experiment requires to be presented to the model.
This function is called to execute the experiment.
Parameters : | data_store : DataStore
stimuli : list(Stimulus)
|
---|---|
Returns : | strsum : int (s)
|
Notes
The reason why this function gets a list of stimuli as input is that even though the experiment itself defines the list of stimuli to present to the model, some of these might have already been presented. The module mozaik.controller filters the list of stimuli which to present to prevent repetitions, and lets this function know via the stimuli argument which stimuli to actually present.
Bases: mozaik.experiments.__init__.Experiment
This experiment does not show any stimulus. Importantly for the duration of the experiment it will stimulate neurons definded by the recording configurations in recording_configuration_list in the sheets specified in the sheet_list with Poisson spike train of mean frequency determined by the corresponding values in lambda_list.
Parameters : | model : Model
duration : str
sheet_list : int
drive_period : float (ms)
recording_configuration : ParameterSet
lambda_list : list
weight_list : list
|
---|
Bases: mozaik.experiments.__init__.Experiment
This experiment does not show any stimulus for the duration of the experiment.
Notes
Unlike MeasureSpontaneousActivity this can be used in model with no sensory input sheet.
Bases: mozaik.experiments.Experiment
Visual experiment. On top of Experiment class it defines a new variable background_luminance, that it sets to be the background luminance of the model’s input space, and new variable density which is set to over the spatial_resolution of the input layer’s receptive field spatial resolution. All experiments in the visual sensory domain should be derived from this class.
Parameters : | model : Model
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Measure orientation tuning using a fullfiled sinusoidal grating.
Parameters : | model : Model
num_orientations : int
spatial_frequency : float
temporal_frequency : float
grating_duration : float
contrasts : list(float)
num_trials : int
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Measure size tuning using expanding sinusoidal grating disk.
Parameters : | model : Model
num_sizes : int
max_size : float (degrees of visual field)
orientation : float
spatial_frequency : float
temporal_frequency : float
grating_duration : float
contrasts : list(float)
num_trials : int
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Measure orientation contrast tuning using. This measures the orientation dependence of the surround of a visual neuron. This is done by stimulating the center of the RF with optimal (spatial,temporal frequency and orientation) sine grating, surrounded by another sinusoidal grating ring whose orientation is varied.
Parameters : | model : Model
num_orientations : int
orientation : float
center_radius : float
surround_radius : float
spatial_frequency : float
temporal_frequency : float
grating_duration : float
contrasts : list(float)
num_trials : int
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Stimulate the model with a natural image with simulated eye movement.
Parameters : | model : Model
stimulus_duration : str
num_trials : int
|
---|
Notes
Currently this implementation bound to have the image and the eye path saved in in files ./image_naturelle_HIGH.bmp and ./eye_path.pickle. In future we need to make this more general.
Bases: mozaik.experiments.vision.VisualExperiment
Stimulate the model with a drifting sine grating with simulated eye movement.
Parameters : | model : Model
spatial_frequency : float
temporal_frequency : float
duration : float
contrast : float
num_trials : int
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Measure spontaneous activity while presenting blank stimulus (all pixels set to background luminance).
Parameters : | model : Model
duration : str
num_trials : int
|
---|
Bases: mozaik.experiments.vision.VisualExperiment
Measure spontaneous activity while presenting blank stimulus (all pixels set to background luminance). Importantly for the duration of the experiment it will stimulate neurons definded by the recording configurations in recording_configuration in the sheets specified in the sheet_list with Poisson spike train of mean frequency determined by the corresponding values in lambda_list via synpases of size weight_list.
Parameters : | model : Model
duration : str
sheet_list : int
drive_period : float (ms)
recording_configuration : list
lambda_list : list
weight_list : list
|
---|