AllToAll

AllToAll#

class braintools.conn.AllToAll(include_self_connections=False, weight=None, delay=None, **kwargs)#

Fully connected network where every neuron connects to every other neuron.

Parameters:
  • include_self_connections (bool) – Whether neurons connect to themselves.

  • weight (Initialization | float | int | ndarray | Array | Quantity | None) – Weight initialization for all connections. If None, no weights are generated.

  • delay (Initialization | float | int | ndarray | Array | Quantity | None) – Delay initialization for all connections. If None, no delays are generated.

Examples

>>> from braintools.init import Constant
>>> all_to_all = AllToAll(
...     weight=Constant(0.5 * u.nS),
...     delay=Constant(1.0 * u.ms)
... )
>>> result = all_to_all(pre_size=50, post_size=50)
generate(**kwargs)[source]#

Generate all-to-all connections.

Return type:

ConnectionResult