brainpy.base.Base#

class brainpy.base.Base(name=None)[source]#

The Base class for whole BrainPy ecosystem.

The subclass of Base includes:

  • DynamicalSystem in brainpy.dyn.base.py

  • Module in brainpy.dyn.base_module.py

  • Integrator in brainpy.integrators.base.py

  • Function in brainpy.base.function.py

  • AutoGrad in brainpy.math.autograd.py

  • Optimizer in brainpy.optimizers.py

  • Scheduler in brainpy.optimizers.py

__init__(name=None)[source]#

Methods

__init__([name])

load_states(filename[, verbose])

Load the model states.

nodes([method, level, include_self])

Collect all children nodes.

register_implicit_nodes(nodes)

register_implicit_vars(variables)

save_states(filename[, variables])

Save the model states.

train_vars([method, level, include_self])

The shortcut for retrieving all trainable variables.

unique_name([name, type_])

Get the unique name for this object.

vars([method, level, include_self])

Collect all variables in this node and the children nodes.

Attributes

name