spynnaker.pyNN.models.neuron.structural_plasticity.synaptogenesis.elimination package

Module contents

class spynnaker.pyNN.models.neuron.structural_plasticity.synaptogenesis.elimination.AbstractElimination

Bases: AbstractHasParameterNames

A synaptic connection elimination rule.

abstractmethod get_parameters_sdram_usage_in_bytes() int[source]

Get the amount of SDRAM used by the parameters of this rule.

Return type:

int

abstract property vertex_executable_suffix: str

The suffix to be appended to the vertex executable for this rule.

Return type:

str

abstractmethod write_parameters(spec: DataSpecificationBase, weight_scale: float) None[source]

Write the parameters of the rule to the spec.

Parameters:
  • spec (DataSpecificationGenerator)

  • weight_scale (float)

class spynnaker.pyNN.models.neuron.structural_plasticity.synaptogenesis.elimination.RandomByWeightElimination(threshold: float, prob_elim_depressed: float = 0.0245, prob_elim_potentiated: float = 0.000136)

Bases: AbstractElimination

Elimination Rule that depends on the weight of a synapse.

Parameters:
  • threshold (float) – Below this weight is considered depression, above or equal to this weight is considered potentiation (or the static weight of the connection on static weight connections)

  • prob_elim_depressed (float) – The probability of elimination if the weight has been depressed (ignored on static weight connections)

  • prob_elim_potentiated (float) – The probability of elimination of the weight has been potentiated or has not changed (and also used on static weight connections)

get_parameter_names() Iterable[str][source]

Get the parameter names available from the component.

Return type:

iterable(str)

get_parameters_sdram_usage_in_bytes() int[source]

Get the amount of SDRAM used by the parameters of this rule.

Return type:

int

property vertex_executable_suffix: str

The suffix to be appended to the vertex executable for this rule.

Return type:

str

write_parameters(spec: DataSpecificationBase, weight_scale: float) None[source]

Write the parameters of the rule to the spec.

Parameters:
  • spec (DataSpecificationGenerator)

  • weight_scale (float)