spynnaker.pyNN.models.neural_projections package¶
Subpackages¶
- spynnaker.pyNN.models.neural_projections.connectors package
- Module contents
AbstractConnectorAbstractConnector.NUMPY_SYNAPSES_DTYPEAbstractConnector.connect()AbstractConnector.delay_type_exception()AbstractConnector.get_connected_vertices()AbstractConnector.get_delay_maximum()AbstractConnector.get_delay_minimum()AbstractConnector.get_delay_variance()AbstractConnector.get_n_connections_from_pre_vertex_maximum()AbstractConnector.get_n_connections_to_post_vertex_maximum()AbstractConnector.get_provenance_data()AbstractConnector.get_weight_maximum()AbstractConnector.get_weight_mean()AbstractConnector.get_weight_variance()AbstractConnector.safeAbstractConnector.set_projection_information()AbstractConnector.set_space()AbstractConnector.spaceAbstractConnector.validate_connection()AbstractConnector.verboseAbstractConnector.weight_type_exception()
AbstractGenerateConnectorOnHostAbstractGenerateConnectorOnMachineAbstractGenerateConnectorOnMachine.gen_connector_idAbstractGenerateConnectorOnMachine.gen_connector_params()AbstractGenerateConnectorOnMachine.gen_connector_params_size_in_bytesAbstractGenerateConnectorOnMachine.gen_delay_params()AbstractGenerateConnectorOnMachine.gen_delay_params_size_in_bytes()AbstractGenerateConnectorOnMachine.gen_delays_id()AbstractGenerateConnectorOnMachine.gen_weight_params_size_in_bytes()AbstractGenerateConnectorOnMachine.gen_weights_id()AbstractGenerateConnectorOnMachine.gen_weights_params()AbstractGenerateConnectorOnMachine.generate_on_machine()AbstractGenerateConnectorOnMachine.validate_connection()
AllToAllConnectorAllToAllConnector.allow_self_connectionsAllToAllConnector.create_synaptic_block()AllToAllConnector.gen_connector_idAllToAllConnector.gen_connector_params()AllToAllConnector.gen_connector_params_size_in_bytesAllToAllConnector.get_delay_maximum()AllToAllConnector.get_delay_minimum()AllToAllConnector.get_n_connections_from_pre_vertex_maximum()AllToAllConnector.get_n_connections_to_post_vertex_maximum()AllToAllConnector.get_weight_maximum()
ArrayConnectorCSAConnectorConvolutionConnectorConvolutionConnector.get_connected_vertices()ConvolutionConnector.get_delay_maximum()ConvolutionConnector.get_delay_minimum()ConvolutionConnector.get_encoded_kernel_weights()ConvolutionConnector.get_local_only_data()ConvolutionConnector.get_n_connections_from_pre_vertex_maximum()ConvolutionConnector.get_n_connections_to_post_vertex_maximum()ConvolutionConnector.get_post_shape()ConvolutionConnector.get_weight_maximum()ConvolutionConnector.kernel_n_bytesConvolutionConnector.kernel_n_weightsConvolutionConnector.kernel_weightsConvolutionConnector.negative_receptor_typeConvolutionConnector.parameters_n_bytesConvolutionConnector.positive_receptor_typeConvolutionConnector.validate_connection()
DistanceDependentProbabilityConnectorDistanceDependentProbabilityConnector.allow_self_connectionsDistanceDependentProbabilityConnector.create_synaptic_block()DistanceDependentProbabilityConnector.d_expressionDistanceDependentProbabilityConnector.get_delay_maximum()DistanceDependentProbabilityConnector.get_delay_minimum()DistanceDependentProbabilityConnector.get_n_connections_from_pre_vertex_maximum()DistanceDependentProbabilityConnector.get_n_connections_to_post_vertex_maximum()DistanceDependentProbabilityConnector.get_weight_maximum()DistanceDependentProbabilityConnector.set_projection_information()
FixedNumberPostConnectorFixedNumberPostConnector.allow_self_connectionsFixedNumberPostConnector.create_synaptic_block()FixedNumberPostConnector.gen_connector_idFixedNumberPostConnector.gen_connector_params()FixedNumberPostConnector.gen_connector_params_size_in_bytesFixedNumberPostConnector.get_delay_maximum()FixedNumberPostConnector.get_delay_minimum()FixedNumberPostConnector.get_n_connections_from_pre_vertex_maximum()FixedNumberPostConnector.get_n_connections_to_post_vertex_maximum()FixedNumberPostConnector.get_weight_maximum()FixedNumberPostConnector.set_projection_information()FixedNumberPostConnector.validate_connection()
FixedNumberPreConnectorFixedNumberPreConnector.allow_self_connectionsFixedNumberPreConnector.create_synaptic_block()FixedNumberPreConnector.gen_connector_idFixedNumberPreConnector.gen_connector_params()FixedNumberPreConnector.gen_connector_params_size_in_bytesFixedNumberPreConnector.get_delay_maximum()FixedNumberPreConnector.get_delay_minimum()FixedNumberPreConnector.get_n_connections_from_pre_vertex_maximum()FixedNumberPreConnector.get_n_connections_to_post_vertex_maximum()FixedNumberPreConnector.get_weight_maximum()FixedNumberPreConnector.set_projection_information()FixedNumberPreConnector.validate_connection()
FixedProbabilityConnectorFixedProbabilityConnector.create_synaptic_block()FixedProbabilityConnector.gen_connector_idFixedProbabilityConnector.gen_connector_params()FixedProbabilityConnector.gen_connector_params_size_in_bytesFixedProbabilityConnector.get_delay_maximum()FixedProbabilityConnector.get_delay_minimum()FixedProbabilityConnector.get_n_connections_from_pre_vertex_maximum()FixedProbabilityConnector.get_n_connections_to_post_vertex_maximum()FixedProbabilityConnector.get_weight_maximum()FixedProbabilityConnector.p_connectFixedProbabilityConnector.validate_connection()
FromFileConnectorFromListConnectorFromListConnector.column_namesFromListConnector.conn_listFromListConnector.create_synaptic_block()FromListConnector.get_connected_vertices()FromListConnector.get_delay_maximum()FromListConnector.get_delay_minimum()FromListConnector.get_delay_variance()FromListConnector.get_extra_parameter_names()FromListConnector.get_extra_parameters()FromListConnector.get_n_connections_from_pre_vertex_maximum()FromListConnector.get_n_connections_to_post_vertex_maximum()FromListConnector.get_weight_maximum()FromListConnector.get_weight_mean()FromListConnector.get_weight_variance()FromListConnector.validate_connection()
IndexBasedProbabilityConnectorIndexBasedProbabilityConnector.allow_self_connectionsIndexBasedProbabilityConnector.create_synaptic_block()IndexBasedProbabilityConnector.get_delay_maximum()IndexBasedProbabilityConnector.get_delay_minimum()IndexBasedProbabilityConnector.get_n_connections_from_pre_vertex_maximum()IndexBasedProbabilityConnector.get_n_connections_to_post_vertex_maximum()IndexBasedProbabilityConnector.get_weight_maximum()IndexBasedProbabilityConnector.index_expression
KernelConnectorKernelConnector.create_synaptic_block()KernelConnector.gen_connector_idKernelConnector.gen_connector_params()KernelConnector.gen_connector_params_size_in_bytesKernelConnector.get_connected_vertices()KernelConnector.get_delay_maximum()KernelConnector.get_delay_minimum()KernelConnector.get_delay_variance()KernelConnector.get_n_connections_from_pre_vertex_maximum()KernelConnector.get_n_connections_to_post_vertex_maximum()KernelConnector.get_weight_maximum()KernelConnector.get_weight_mean()KernelConnector.get_weight_variance()KernelConnector.validate_connection()
MultapseConnectorMultapseConnector.create_synaptic_block()MultapseConnector.gen_connector_idMultapseConnector.gen_connector_params()MultapseConnector.gen_connector_params_size_in_bytesMultapseConnector.get_delay_maximum()MultapseConnector.get_delay_minimum()MultapseConnector.get_n_connections_from_pre_vertex_maximum()MultapseConnector.get_n_connections_to_post_vertex_maximum()MultapseConnector.get_rng_next()MultapseConnector.get_weight_maximum()MultapseConnector.set_projection_information()MultapseConnector.validate_connection()
OneToOneConnectorOneToOneConnector.create_synaptic_block()OneToOneConnector.gen_connector_idOneToOneConnector.gen_connector_params()OneToOneConnector.gen_connector_params_size_in_bytesOneToOneConnector.generate_on_machine()OneToOneConnector.get_connected_vertices()OneToOneConnector.get_delay_maximum()OneToOneConnector.get_delay_minimum()OneToOneConnector.get_n_connections_from_pre_vertex_maximum()OneToOneConnector.get_n_connections_to_post_vertex_maximum()OneToOneConnector.get_weight_maximum()
PoolDenseConnectorPoolDenseConnector.get_delay_maximum()PoolDenseConnector.get_delay_minimum()PoolDenseConnector.get_local_only_data()PoolDenseConnector.get_n_connections_from_pre_vertex_maximum()PoolDenseConnector.get_n_connections_to_post_vertex_maximum()PoolDenseConnector.get_post_pool_shape()PoolDenseConnector.get_weight_maximum()PoolDenseConnector.local_only_n_bytes()PoolDenseConnector.negative_receptor_typePoolDenseConnector.positive_receptor_typePoolDenseConnector.validate_connection()PoolDenseConnector.weights
SmallWorldConnectorSmallWorldConnector.create_synaptic_block()SmallWorldConnector.get_delay_maximum()SmallWorldConnector.get_delay_minimum()SmallWorldConnector.get_n_connections_from_pre_vertex_maximum()SmallWorldConnector.get_n_connections_to_post_vertex_maximum()SmallWorldConnector.get_weight_maximum()SmallWorldConnector.set_projection_information()
- Module contents
Module contents¶
- class spynnaker.pyNN.models.neural_projections.DelayAfferentApplicationEdge(pre_vertex: PopulationApplicationVertex, delay_vertex: DelayExtensionVertex, label: str | None = None)¶
Bases:
ApplicationEdgeEdge between a Population vertex and a delay vertex.
- Parameters:
pre_vertex (PopulationApplicationVertex)
delay_vertex (DelayExtensionVertex)
label (str)
- class spynnaker.pyNN.models.neural_projections.DelayedApplicationEdge(pre_vertex: DelayExtensionVertex, post_vertex: AbstractPopulationVertex, synapse_information: SynapseInformation | Iterable[SynapseInformation], undelayed_edge: ProjectionApplicationEdge, label: str | None = None)¶
Bases:
ApplicationEdgeThe Edge from a delay vertex to a Population vertex.
- Parameters:
pre_vertex (DelayExtensionVertex) – The delay extension at the start of the edge
post_vertex (AbstractPopulationVertex) – The target of the synapses
synapse_information (SynapseInformation or iterable(SynapseInformation)) – The synapse information on this edge
undelayed_edge (ProjectionApplicationEdge) – The edge that is used for projections without extended delays
label (str) – The edge label
- add_synapse_information(synapse_information: SynapseInformation)[source]¶
- Parameters:
synapse_information (SynapseInformation)
- property post_vertex: AbstractPopulationVertex¶
The vertex at the end of the edge.
- Return type:
- property pre_vertex: DelayExtensionVertex¶
The vertex at the start of the edge.
- Return type:
- property synapse_information: List[SynapseInformation]¶
- Return type:
- property undelayed_edge: ProjectionApplicationEdge¶
The edge for projections without extended delays.
- Return type:
- class spynnaker.pyNN.models.neural_projections.ProjectionApplicationEdge(pre_vertex: PopulationApplicationVertex, post_vertex: AbstractPopulationVertex, synapse_information: SynapseInformation, label: str | None = None)¶
Bases:
ApplicationEdge,AbstractProvidesLocalProvenanceDataAn edge which terminates on an
AbstractPopulationVertex.- Parameters:
pre_vertex (PopulationApplicationVertex)
post_vertex (AbstractPopulationVertex)
synapse_information (SynapseInformation) – The synapse information on this edge
label (str)
- add_synapse_information(synapse_information: SynapseInformation)[source]¶
- Parameters:
synapse_information (SynapseInformation)
- property delay_edge: DelayedApplicationEdge | None¶
Settable.
- Return type:
DelayedApplicationEdge or None
- get_local_provenance_data() None[source]¶
Get provenance data items and store them in the provenance DB.
- property post_vertex: AbstractPopulationVertex¶
The vertex at the end of the edge.
- Return type:
- property pre_vertex: PopulationApplicationVertex¶
The vertex at the start of the edge.
- Return type:
- property synapse_information: List[SynapseInformation]¶
- Return type:
- class spynnaker.pyNN.models.neural_projections.SynapseInformation(connector: AbstractConnector, pre_population: Population | PopulationView, post_population: Population | PopulationView, prepop_is_view: bool, postpop_is_view: bool, synapse_dynamics: AbstractSynapseDynamics, synapse_type: int, receptor_type: str, synapse_type_from_dynamics: bool, weights: Weight_Types = None, delays: Delay_Types = None)¶
Bases:
objectContains the synapse information including the connector, synapse type and synapse dynamics.
- Parameters:
connector (AbstractConnector) – The connector connected to the synapse
pre_population (Population or PopulationView) – The population sending spikes to the synapse
post_population (Population or PopulationView) – The population hosting the synapse
prepop_is_view (bool) – Whether the
pre_populationis a viewpostpop_is_view (bool) – Whether the
post_populationis a viewsynapse_dynamics (AbstractSynapseDynamics) – The dynamic behaviour of the synapse
synapse_type (int) – The type of the synapse
receptor_type (str) – Description of the receptor (e.g. excitatory)
synapse_type_from_dynamics (bool) – Whether the synapse type came from synapse dynamics
weights (float or list(float) or ndarray(float) or None) – The synaptic weights
delays (float or list(float) or ndarray(float) or None) – The total synaptic delays
- add_pre_run_connection_holder(pre_run_connection_holder: ConnectionHolder)[source]¶
Add a connection holder that will be filled in before run.
- Parameters:
pre_run_connection_holder (ConnectionHolder) – The connection holder to be added
- property connector: AbstractConnector¶
The connector connected to the synapse.
- Return type:
- property delays: float | str | RandomDistribution | ndarray[Any, dtype[float64]]¶
The total synaptic delays (if any).
- finish_connection_holders() None[source]¶
Finish all the connection holders, and clear the list so that they are not generated again later.
- may_generate_on_machine() bool[source]¶
Do we describe a collection of synapses whose synaptic matrix may be generated on SpiNNaker instead of needing to be calculated in this process and uploaded? This depends on the connector, the definitions of the weights and delays, and the dynamics of the synapses.
- Returns:
True if the synaptic matrix may be generated on machine (or may have already been so done)
- Return type:
- property post_population: Population | PopulationView¶
The population hosting the synapse.
- Return type:
- property post_vertex: ApplicationVertex¶
The vertex hosting the synapse.
- Return type:
ApplicationVertex
- property postpop_is_view: bool¶
Whether the
post_population()is a view.- Return type:
- property pre_population: Population | PopulationView¶
The population sending spikes to the synapse.
- Return type:
- property pre_run_connection_holders: Sequence[ConnectionHolder]¶
The list of connection holders to be filled in before run.
- Return type:
- property pre_vertex: ApplicationVertex¶
The vertex sending spikes to the synapse.
- Return type:
ApplicationVertex
- property prepop_is_view: bool¶
Whether the
pre_population()is a view.- Return type:
- property synapse_dynamics¶
The dynamic behaviour of the synapse.
- Return type:
- property synapse_type: int¶
The type of the synapse. An index into the set of synapse types supported by a neuron.
- Return type: