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. DefaultFalse.
Notes
Each of the
n_clustersclusters of a postsynaptic neuron drawsmin(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.vmaporjax.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
seeddiffer 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