spynnaker.pyNN.models.neuron.implementations package¶
Module contents¶
- class spynnaker.pyNN.models.neuron.implementations.AbstractNeuronImpl¶
Bases:
object
An abstraction of a whole neuron model including all parts.
- abstract add_parameters(parameters)[source]¶
Add the initial values of the parameters to the parameter holder.
- Parameters:
parameters (RangeDictionary) – A holder of the parameters
- abstract add_state_variables(state_variables)[source]¶
Add the initial values of the state variables to the state variables holder.
- Parameters:
state_variables (RangeDictionary) – A holder of the state variables
- abstract property binary_name¶
The name of the binary executable of this implementation.
- Return type:
- abstract get_global_weight_scale()[source]¶
Get the weight scaling required by this model.
- Return type:
- abstract get_n_synapse_types()[source]¶
Get the number of synapse types supported by the model.
- Return type:
- abstract get_recordable_data_types()[source]¶
Get the data type of the variables that can be recorded.
- abstract get_recordable_units(variable)[source]¶
Get the units of the given variable that can be recorded.
- Parameters:
variable (str) – The name of the variable
- abstract get_recordable_variable_index(variable)[source]¶
Get the index of the variable in the list of variables that can be recorded.
- abstract get_recordable_variables()[source]¶
Get the names of the variables that can be recorded in this model.
- class spynnaker.pyNN.models.neuron.implementations.AbstractStandardNeuronComponent(structs, units)¶
Bases:
object
Represents a component of a standard neural model.
- Parameters:
- abstract add_parameters(parameters)[source]¶
Add the initial values of the parameters to the parameter holder.
- Parameters:
parameters (RangeDictionary) – A holder of the parameters
- abstract add_state_variables(state_variables)[source]¶
Add the initial values of the state variables to the state variables holder.
- Parameters:
state_variables (RangeDictionary) – A holder of the state variables
- get_units(variable)[source]¶
Get the units of the given variable.
- Parameters:
variable (str) – The name of the variable
- property structs¶
The structures of the component. If there are multiple structures, the order is how they will appear in memory; where there are structures that repeat per neuron the repeats will appear adjacent e.g. for non-repeating structure g, followed by repeating structures s1 and s2 with 3 neurons the layout will be:
[g, s1, s1, s1, s2, s2, s2]
.
- class spynnaker.pyNN.models.neuron.implementations.NeuronImplStandard(model_name, binary, neuron_model, input_type, synapse_type, threshold_type, additional_input_type=None)¶
Bases:
AbstractNeuronImpl
The standard componentised neuron implementation.
- Parameters:
model_name (str) –
binary (str) –
neuron_model (AbstractNeuronModel) –
input_type (AbstractInputType) –
synapse_type (AbstractSynapseType) –
threshold_type (AbstractThresholdType) –
additional_input_type (AbstractAdditionalInput or None) –
- add_parameters(parameters)[source]¶
Add the initial values of the parameters to the parameter holder.
- Parameters:
parameters (RangeDictionary) – A holder of the parameters
- add_state_variables(state_variables)[source]¶
Add the initial values of the state variables to the state variables holder.
- Parameters:
state_variables (RangeDictionary) – A holder of the state variables
- get_recordable_units(variable)[source]¶
Get the units of the given variable that can be recorded.
- Parameters:
variable (str) – The name of the variable
- get_recordable_variable_index(variable)[source]¶
Get the index of the variable in the list of variables that can be recorded.
- get_recordable_variables()[source]¶
Get the names of the variables that can be recorded in this model.
- property n_steps_per_timestep¶
- class spynnaker.pyNN.models.neuron.implementations.RangedDictVertexSlice(ranged_dict, vertex_slice)¶
Bases:
object
A slice of a ranged dict to be used to update values.
- Parameters:
ranged_dict (RangeDictionary) –
vertex_slice (Slice) –