brainpy module#

Numerical Differential Integration#

Integrator

Basic Integrator Class.

JointEq

Make a joint equation from multiple derivation functions.

IntegratorRunner

Structural runner for numerical integrators in brainpy.

odeint

Numerical integration for ODEs.

sdeint

Numerical integration for SDEs.

fdeint

Numerical integration for FDEs.

Building Dynamical System#

DynamicalSystem

Base Dynamical System class.

DynSysGroup

A group of :py:class:`~.DynamicalSystem`s in which the updating order does not matter.

Sequential

A sequential input-output module.

Network

alias of DynSysGroup

Dynamic

Base class to model dynamics.

Projection

Base class to model synaptic projections.

Simulating Dynamical System#

DSRunner

The runner for DynamicalSystem.

Training Dynamical System#

DSTrainer

Structural Trainer for Dynamical Systems.

BPTT

The trainer implementing the back-propagation through time (BPTT) algorithm for training dyamical systems.

BPFF

The trainer implementing back propagation algorithm for feedforward neural networks.

OnlineTrainer

Online trainer for models with recurrent dynamics.

ForceTrainer

FORCE learning.

OfflineTrainer

Offline trainer for models with recurrent dynamics.

RidgeTrainer

Trainer of ridge regression, also known as regression with Tikhonov regularization.

Dynamical System Helpers#

LoopOverTime

Transform a single step DynamicalSystem into a multiple-step forward propagation BrainPyObject.

reset_state

Reset states of all children nodes in the given target.

save_state

Save all states in the target as a dictionary for later disk serialization.

load_state

Copy parameters and buffers from state_dict into this module and its descendants.

clear_input

Clear all inputs in the given target.