pyhgf.typing.vectorised.Network#
- class pyhgf.typing.vectorised.Network(layers, volatility_updates, max_posterior_precision, precision_clipping_value=1e-06)[source]#
Complete vectorised network state.
time_stepis not stored on the network — it is passed as a per-step input topropagation_step, matching the nodalised backend’sinput_data(time_steps=...)API.Optimiser state lives in a separate
optaxopt-state carried alongsideNetworkin the scan carry; it is not part of the network PyTree.layersis a mixed tuple ofLayerandLayerStackelements.- Parameters:
layers (tuple) – A mixed tuple of
LayerandLayerStackelements, ordered from the bottom (input) layer to the top.volatility_updates (str) – The volatility update scheme, e.g.
"unbounded".max_posterior_precision (float) – The maximum posterior precision used to clip the precision updates.
precision_clipping_value (float)
- __init__(layers, volatility_updates, max_posterior_precision, precision_clipping_value=1e-06)#
Methods
__init__(layers, volatility_updates, ...[, ...])get_layer_sizes()Per-element node count (one entry per
Layer/LayerStack).weights_tuple()Per-element
weights_intuple, matched 1:1 toself.layers.Attributes
n_layersNumber of elements (
LayerorLayerStack) in the network.n_total_slicesTotal unrolled layer count, expanding every
LayerStack.paramsPer-layer
LayerParamstuple.precision_clipping_valueweightsTuple of weight matrices (legacy view).
layersvolatility_updatesmax_posterior_precision