spynnaker.pyNN.models.neural_projections package¶
Subpackages¶
- spynnaker.pyNN.models.neural_projections.connectors package
- Module contents
AbstractConnectorAbstractConnector.NUMPY_SYNAPSES_DTYPEAbstractConnector.clone()AbstractConnector.connect()AbstractConnector.delay_type_exception()AbstractConnector.describe()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_parameters()AbstractConnector.get_provenance_data()AbstractConnector.get_unused()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()
AllButMeConnectorAllButMeConnector.create_synaptic_block()AllButMeConnector.gen_connector_idAllButMeConnector.gen_connector_params()AllButMeConnector.gen_connector_params_size_in_bytesAllButMeConnector.get_delay_maximum()AllButMeConnector.get_delay_minimum()AllButMeConnector.get_n_connections_from_pre_vertex_maximum()AllButMeConnector.get_n_connections_to_post_vertex_maximum()AllButMeConnector.get_parameters()AllButMeConnector.get_weight_maximum()AllButMeConnector.get_weight_mean()AllButMeConnector.get_weight_variance()AllButMeConnector.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_parameters()AllToAllConnector.get_weight_maximum()
ArrayConnectorCSAConnectorCSAConnector.create_synaptic_block()CSAConnector.get_delay_maximum()CSAConnector.get_delay_minimum()CSAConnector.get_n_connections_from_pre_vertex_maximum()CSAConnector.get_n_connections_to_post_vertex_maximum()CSAConnector.get_parameters()CSAConnector.get_weight_maximum()CSAConnector.show_connection_set()
ConvolutionConnectorConvolutionConnector.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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()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_parameters()OneToOneConnector.get_weight_maximum()
OneToOneOffsetConnectorOneToOneOffsetConnector.create_synaptic_block()OneToOneOffsetConnector.gen_connector_idOneToOneOffsetConnector.gen_connector_params()OneToOneOffsetConnector.gen_connector_params_size_in_bytesOneToOneOffsetConnector.get_delay_maximum()OneToOneOffsetConnector.get_delay_minimum()OneToOneOffsetConnector.get_n_connections_from_pre_vertex_maximum()OneToOneOffsetConnector.get_n_connections_to_post_vertex_maximum()OneToOneOffsetConnector.get_parameters()OneToOneOffsetConnector.get_weight_maximum()OneToOneOffsetConnector.validate_connection()
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_parameters()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_parameters()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
delay_vertex
label
- class spynnaker.pyNN.models.neural_projections.DelayedApplicationEdge(pre_vertex: DelayExtensionVertex, post_vertex: PopulationVertex, 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 – The delay extension at the start of the edge
post_vertex – The target of the synapses
synapse_information – The synapse information on this edge
undelayed_edge – The edge that is used for projections without extended delays
label – The edge label
- add_synapse_information(synapse_information: SynapseInformation) None[source]¶
Add more synapse information on this edge
- property post_vertex: PopulationVertex¶
The vertex at the end of the edge.
- property pre_vertex: DelayExtensionVertex¶
The vertex at the start of the edge.
- property synapse_information: List[SynapseInformation]¶
The synapse information on this edge
- property undelayed_edge: ProjectionApplicationEdge¶
The edge for projections without extended delays.
- class spynnaker.pyNN.models.neural_projections.ProjectionApplicationEdge(pre_vertex: PopulationApplicationVertex, post_vertex: PopulationVertex, synapse_information: SynapseInformation, label: str | None = None)¶
Bases:
ApplicationEdgeAn edge which terminates on an
PopulationVertex.- Parameters:
pre_vertex
post_vertex
synapse_information – The synapse information on this edge
label
- add_synapse_information(synapse_information: SynapseInformation) None[source]¶
Adds synapse information on this edge
- Parameters:
synapse_information
- property delay_edge: DelayedApplicationEdge | None¶
Settable.
- get_local_provenance_data() None[source]¶
Calls get_provenance_data on the connectors
This calls get_provenance_data on the connector used.
- property post_vertex: PopulationVertex¶
The vertex at the end of the edge.
- property pre_vertex: PopulationApplicationVertex¶
The vertex at the start of the edge.
- property synapse_information: List[SynapseInformation]¶
The synapse information on this edge
- 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: Weights = None, delays: Delays = None, download_on_pause: bool = False, partition_id: str | None = None)¶
Bases:
objectContains the synapse information including the connector, synapse type and synapse dynamics.
- Parameters:
connector – The connector connected to the synapse
pre_population – The population sending spikes to the synapse
post_population – The population hosting the synapse
prepop_is_view – Whether the
pre_populationis a viewpostpop_is_view – Whether the
post_populationis a viewsynapse_dynamics – The dynamic behaviour of the synapse
synapse_type – The type of the synapse
receptor_type – Description of the receptor (e.g. excitatory)
synapse_type_from_dynamics – Whether the synapse type came from synapse dynamics
weights – The synaptic weights
delays – The total synaptic delays
download_on_pause – Whether to download the synapse matrix when the simulation pauses
partition_id – The partition id for the application edge when not standard; if None, the standard SPIKE_PARTITION_ID is used
- add_pre_run_connection_holder(pre_run_connection_holder: ConnectionHolder) None[source]¶
Add a connection holder that will be filled in before run.
- Parameters:
pre_run_connection_holder – The connection holder to be added
- property connector: AbstractConnector¶
The connector connected to the synapse.
- property delays: float | str | RandomDistribution | ndarray[tuple[Any, ...], dtype[float64]]¶
The total synaptic delays (if any).
- property download_on_pause: bool¶
Whether to download the synapse matrix when the simulation pauses.
- 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)
- property post_population: Population | PopulationView¶
The population hosting the synapse.
- property post_vertex: ApplicationVertex¶
The vertex hosting the synapse.
- property postpop_is_view: bool¶
Whether the
post_population()is a view.
- property pre_population: Population | PopulationView¶
The population sending spikes to the synapse.
- property pre_run_connection_holders: Sequence[ConnectionHolder]¶
The list of connection holders to be filled in before run.
- property pre_vertex: ApplicationVertex¶
The vertex sending spikes to the synapse.
- property prepop_is_view: bool¶
Whether the
pre_population()is a view.
- property synapse_dynamics: AbstractSynapseDynamics¶
The dynamic behaviour of the synapse.
- property synapse_type: int¶
The type of the synapse. An index into the set of synapse types supported by a neuron.