Stimulus¶
- class compressed_kde.compressed_kde.decode.Stimulus¶
Bases:
pybind11_objectStimulus Occupancy class.
- Parameters
Attributes Summary
Threshold for compression when merging new stimuli into distribution.
Dimensionality of stimulus space.
Whether new stimuli will be merged into the distribution in randomized order.
Stimulus space.
Duration (in seconds) of single stimulus.
Total stimulus presentation time.
Methods Summary
add_stimuli(stimuli, repetitions)Merge new stimuli into distribution.
load_from_hdf5(filename, path)Load stimulus occupancy from hdf5 file.
logp()Evaluate log probability of stimulus distribution on grid.
Evaluate stimulus occupancy on grid.
prob()Evaluate probability of stimulus distribution on grid.
save_to_hdf5(filename, flags, path)Save stimulus occupancy to hdf5 file.
save_to_yaml(path)Save stimulus occupancy to YAML file.
to_yaml()Represent stimulus occupancy as YAML.
Attributes Documentation
- compression¶
Threshold for compression when merging new stimuli into distribution.
- ndim¶
Dimensionality of stimulus space.
- random_insertion¶
Whether new stimuli will be merged into the distribution in randomized order.
- space¶
Stimulus space.
- stimulus_duration¶
Duration (in seconds) of single stimulus.
- stimulus_time¶
Total stimulus presentation time.
Methods Documentation
- add_stimuli(stimuli, repetitions) None¶
Merge new stimuli into distribution.
- Parameters
stimuli ((n,ndim) array) – Array of stimulus values.
repetitions (int) – The number of repetitions for the stimuli.
- static load_from_hdf5(filename, path) StimulusOccupancy¶
Load stimulus occupancy from hdf5 file.
- logp() array¶
Evaluate log probability of stimulus distribution on grid.
- Return type
nd array
- occupancy() array¶
Evaluate stimulus occupancy on grid.
- Return type
nd array
- prob() array¶
Evaluate probability of stimulus distribution on grid.
- Return type
nd array