ngclearn.components package

Subpackages

Submodules

ngclearn.components.baseComponentTemplate module

class ngclearn.components.baseComponentTemplate.COMPONENT_TEMPLATE(name, key=None, useVerboseDict=False, **kwargs)[source]

Bases: Component

property DEFAULTCompartment
classmethod DEFAULTCompartmentName()[source]
advance_state(**kwargs)[source]

An abstract method to advance the state of the component to the next one (a component transitions from its current state at time t to a new one at time t + dt)

reset(**kwargs)[source]

An abstract method that should be implemented to models can be returned to their original state.

save(directory, **kwargs)[source]

An abstract method to save component specific state to the provided directory

Parameters:

directory – the directory to save the state to

verify_connections()[source]

An abstract method that generally uses component metadata to verify that there are the correct number of connections. This should error if it fails the verification.

ngclearn.components.wrappers module

ngclearn.components.wrappers.LIFWrapper(name, n_units, tau_m, R_m)[source]
ngclearn.components.wrappers.sLIFWrapper(name, n_units, tau_m, R_m)[source]

Module contents