snnlab
API referencesnnlab.lang

snnlab.lang

Complete API reference for lang, including exports and every declared module API.

Author graph structure, readouts, training and simulation recipes; compile them into deterministic data bundles. Creating declarations does not simulate or train a network.

Imports

from snnlab import lang

Package exports

ExportDefined in / valueRole
AMPAlang.corere-export
BackgroundChannellang.simulationre-export
Bundlelang.compilerre-export
COBA_LIFlang.corere-export
CellDistributionlang.simulationre-export
ConductanceBackgroundlang.simulationre-export
ConductanceSchedulelang.simulationre-export
Constantlang.corere-export
CorrelatedPoissonAfferentslang.simulationre-export
Diagnosticlang.compilerre-export
GABAlang.corere-export
GlobalShotNoiselang.simulationre-export
GroupedShotNoiselang.simulationre-export
Hzlang.corere-export
LIFlang.corere-export
LeakyIntegratorlang.corere-export
LowerClampedNormallang.corere-export
Modulatorylang.corere-export
Networklang.corere-export
NonNegativelang.corere-export
Normallang.corere-export
ParameterReflang.corere-export
Populationlang.corere-export
Projectionlang.corere-export
Quantitylang.corere-export
ShotNoiselang.simulationre-export
Signallang.corere-export
SignedNormallang.corere-export
SimulationSpeclang.simulationre-export
StationaryRateWeatherlang.simulationre-export
StructuredPoissonlang.simulationre-export
TrainSpeclang.trainingre-export
TransientAfferentWavelang.simulationre-export
Uniformlang.corere-export
Zeroslang.corere-export
__version__'0.2.0'Component format version; distinct from the combined distribution version.
compilelang.compilerre-export
componentslang.componentsmodule
diagramlang.diagramre-export
load_bundlelang.compilerre-export
mVlang.corere-export
mslang.corere-export
nSlang.corere-export
opslang.opsmodule
readoutslang.readoutsmodule
simulationlang.simulationmodule
traininglang.trainingmodule
uSlang.corere-export
validate_graphlang.compilerre-export

Modules

ModuleResponsibility
lang.compilerValidation, canonical serialisation, bundle I/O, and reports.
lang.componentsReusable authoring functions; components expand before serialisation.
lang.coreAuthoring objects are mutable until compilation. Signal shapes use explicit axis names such as time and batch. Projection weights use uS; neuron and synapse factories produce data specifications, not running models. Factory keyword arguments are serialized into the specification and validated when the graph is compiled. Use the compiler and graph executor capability checks before assuming a specification is executable.
lang.diagramLower snnlang bundle semantics into renderer-neutral diagrams.
lang.opsSmall serialisable operation vocabulary.
lang.readoutsReadout factories expand into ordinary network populations, projections and operations. They mutate the source network and return a Readout handle rather than computing scores immediately. The Readout forwards attribute lookup to its Signal.
lang.simulationSimulation recipes describe structured spike sources, background conductances, rate weather, afferent waves and schedules. compile(simulation=...) stores a graph-bound simulation.json. These records do not produce samples until realized by the simulator.
lang.trainingTraining declarations are serialized by compile(training=...). They specify objectives, parameter scope, optimizer and gradient rules; concrete datasets, targets and execution ordering remain request inputs.

Coverage and conventions

This reference includes every top-level non-private function and class, module-owned constant/type alias, declared public method/property, constructor and relevant protocol special method in the modules above. Data-class constructor fields include local inheritance. Third-party inherited APIs belong to their own libraries; underscore-prefixed implementation helpers are excluded. Imported standard-library and third-party names are not snnlab APIs.

Source docstrings are reproduced as text to preserve their parameter notes, examples, equations and formatting. Explicit exceptions are extracted from the implementation; indirect exceptions can also propagate. Expand the implementation panels for complete branch behavior, especially where legacy code has no annotations.

Regenerate with python3.12 docs/scripts/generate_api.py; --check fails if source-derived reference pages drift. Authored explanatory notes live in docs/scripts/api_notes.json.

On this page