spynnaker.pyNN.models.neuron.input_types package

Module contents

class spynnaker.pyNN.models.neuron.input_types.AbstractInputType(structs, units)

Bases: AbstractStandardNeuronComponent

Represents a possible input type for a neuron model (e.g., current).

Parameters:
  • structs (list(Struct)) – The structures of the component

  • units (dict) – The units to use for each parameter

abstract get_global_weight_scale()[source]

Get the global weight scaling value.

Returns:

The global weight scaling value

Return type:

float

class spynnaker.pyNN.models.neuron.input_types.InputTypeConductance(e_rev_E, e_rev_I)

Bases: AbstractInputType

The conductance input type.

Parameters:
  • e_rev_E (float or iterable(float) or RandomDistribution or (mapping) function) – Reversal potential for excitatory input; \(E^{rev}_e\)

  • e_rev_I (float or iterable(float) or RandomDistribution or (mapping) function) – Reversal potential for inhibitory input; \(E^{rev}_i\)

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

property e_rev_E

\(E_{{rev}_e}\)

property e_rev_I

\(E_{{rev}_i}\)

get_global_weight_scale()[source]

Get the global weight scaling value.

Returns:

The global weight scaling value

Return type:

float

class spynnaker.pyNN.models.neuron.input_types.InputTypeCurrent

Bases: AbstractInputType

The current input type.

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_global_weight_scale()[source]

Get the global weight scaling value.

Returns:

The global weight scaling value

Return type:

float

class spynnaker.pyNN.models.neuron.input_types.InputTypeDelta

Bases: AbstractInputType

The delta input type.

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_global_weight_scale()[source]

Get the global weight scaling value.

Returns:

The global weight scaling value

Return type:

float