brainpy.connect.FixedProb#

class brainpy.connect.FixedProb(prob, pre_ratio=1.0, include_self=True, allow_multi_conn=False, seed=None)[source]#

Connect the post-synaptic neurons with fixed probability.

Parameters
  • prob (float) – The conn probability.

  • pre_ratio (float) – The ratio of pre-synaptic neurons to connect.

  • include_self (bool) – Whether create (i, i) conn?

  • allow_multi_conn (bool) –

    Allow one pre-synaptic neuron connects to multiple post-synaptic neurons?

    New in version 2.2.3.2.

  • seed (optional, int) – Seed the random generator.

__init__(prob, pre_ratio=1.0, include_self=True, allow_multi_conn=False, seed=None)[source]#

Methods

__init__(prob[, pre_ratio, include_self, ...])

build_conn()

build connections with certain data type.

build_coo()

Build a coo sparse connection data.

build_csr()

Build a csr sparse connection data.

build_mat()

Build a binary matrix connection data.

require(*structures)

Require all the connection data needed.

requires(*structures)

Require all the connection data needed.

Attributes

is_version2_style