DendriticIntegration#

class braintools.conn.DendriticIntegration(cluster_size=5, n_clusters=10, weight=None, delay=None, allow_self_connections=False, **kwargs)#

Dendritic integration connectivity patterns.

Models connectivity that supports dendritic integration, with clustered synapses on the same dendritic branches for nonlinear integration.

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

  • n_clusters (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.

  • allow_self_connections (bool) – Whether a neuron may connect to itself. Default False.

Notes

Each of the n_clusters clusters of a postsynaptic neuron draws min(cluster_size, pre_size) distinct presynaptic neurons and lands on the basal or the apical dendrite with equal probability. Synapses repeated across clusters of the same neuron are merged.

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: All clusters are sampled in one vectorised call instead of a Python loop over postsynaptic neurons and clusters. The edges for a given seed differ from 0.3 (same distribution).

Examples

>>> from braintools.conn import DendriticIntegration
>>> clusters = DendriticIntegration(cluster_size=4, n_clusters=3, seed=0)
>>> result = clusters(pre_size=100, post_size=20)
>>> result.n_connections
236
generate(pre_size, post_size, pre_positions=None, post_positions=None, **kwargs)[source]#

Generate clustered synaptic connections.

Return type:

ConnectionResult