NEST-Compatible Network Builder#

High-level builders, projections, connection rules, and simulation utilities for assembling and running NEST-compatible networks in brainpy.state. This is the declarative, NEST-like network layer: describe populations and connections with a Builder, materialize a Network, and drive it with a Simulator.

Network Construction & Execution#

Assemble a network from a declarative description and run it.

network.Network

brainpy.state network base class.

network.Builder

Imperative variant of Network.

network.Simulator

Explicit NEST-flavored network builder and runner.

network.SimulationResult

Recorded spikes and analog traces from a Simulator.simulate() run.

Population Views & Synapse Collections#

Handles returned when slicing populations or referring to groups of synapses.

network.NodeView

A view over one or more slices of populations/devices (NEST-style).

network.SynapseCollection

A filtered, lazy view over realized synapses (NEST SynapseCollection).

Recording#

Collect spikes, state variables, and synaptic weights during simulation.

network.Recorder

Forward a source-population signal to a passive NESTDevice each step.

network.weight_recorder_events

Per-send weight events over a weight trajectory (the thin send-view).

Projection Classes#

Connect populations under the various NEST-like connection rules.

network.OneToOneProj

One-to-one connection: edge (i, i) for i = 0..N-1.

network.AllToAllProj

All-to-all connectivity.

network.PairwiseBernoulliProj

Each (pre, post) pair has independent Bernoulli probability p.

network.SymmetricPairwiseBernoulliProj

Symmetric Bernoulli: if edge (i,j) exists then (j,i) exists too.

network.FixedIndegreeProj

Each post-synaptic neuron receives exactly K incoming edges.

network.FixedOutdegreeProj

Each pre-synaptic neuron has exactly K outgoing edges.

network.FixedTotalNumberProj

Exactly N edges drawn uniformly over the (pre, post) grid.

network.PairwisePoissonProj

Each (pre, post) pair has a Poisson-distributed number of edges with mean mean.

network.EventProjection

Delayed, weighted delta-event projection from one population segment.

network.EventPlasticProj

Event-driven plastic projection from one population segment.

network.VoltageCoupledPlasticProj

Voltage-coupled plastic projection — primitive #2 of the typed family.

Connection Rules#

Rule objects and helpers used to specify how populations are wired together.

network.ConnRule

Base class for connection rules.

network.all_to_all

network.one_to_one

network.fixed_indegree

Return a fixed-indegree rule: each post neuron gets exactly K edges.

network.fixed_total_number

Return a fixed-total-number rule: exactly N edges over the (pre, post) grid.

network.pairwise_bernoulli

Return a pairwise-Bernoulli rule: connect each (pre, post) pair with prob.

network.third_factor_bernoulli_with_pool

Return a third_factor_bernoulli_with_pool spec (NEST tripartite astro-pool rule).

network.explicit_edges

Return a rule wiring exactly the given (pre_idx[i], post_idx[i]) edges.

network.send_steps_from_pre

Step indices where each edge's presynaptic neuron fired (the send mask).