SynapticClustering#

class braintools.conn.SynapticClustering(cluster_size=5, n_clusters_per_neuron=10, weight=None, delay=None, **kwargs)#

Synaptic clustering patterns.

Creates clusters of synapses on dendritic branches, important for nonlinear dendritic integration.

Parameters:
  • cluster_size (int) – Number of synapses per cluster.

  • n_clusters_per_neuron (int) – Number of clusters per postsynaptic neuron.

  • weight (Initialization | float | int | ndarray | Array | Quantity | None) – Weight initialization.

  • delay (Initialization | float | int | ndarray | Array | Quantity | None) – Delay initialization.

Notes

Shorthand for DendriticIntegration.

Generation runs on the host with NumPy and cannot be traced by jax.jit, jax.vmap or jax.grad.

Changed in version 0.4.0: Vectorised with DendriticIntegration; the edges for a given seed differ from 0.3 (same distribution).

Examples

>>> from braintools.conn import SynapticClustering
>>> clustering = SynapticClustering(cluster_size=3, n_clusters_per_neuron=2, seed=0)
>>> result = clustering(pre_size=50, post_size=10)
>>> result.n_connections
58
generate(pre_size, post_size, pre_positions=None, post_positions=None, **kwargs)[source]#

Generate clustered synaptic connections.

Return type:

ConnectionResult