pyhgf.typing.vectorised.VectorisedNetwork#
- class pyhgf.typing.vectorised.VectorisedNetwork(layers, volatility_updates, max_posterior_precision, precision_clipping_value=1e-06, update_input_layer=False, predict_precision=True, feedforward_uncertainty=False, mean_field_updates=False)[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 alongsideVectorisedNetworkin 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.
update_input_layer (bool) – Whether the sweeps reach the top (input) layer — see
pyhgf.model.DeepNetwork.predict_precision (bool) – Whether the prediction sweep advances the precisions — see
pyhgf.updates.vectorised.volatile.prediction.vectorised_layer_prediction().feedforward_uncertainty (bool) – Whether value parents propagate their uncertainty to their children’s predicted precision — see
pyhgf.model.DeepNetwork.mean_field_updates (bool) – If
False(default), use the relaxed prediction and posterior updates. IfTrue, use the original mean-field updates — seepyhgf.model.DeepNetwork.precision_clipping_value (float)
- __init__(layers, volatility_updates, max_posterior_precision, precision_clipping_value=1e-06, update_input_layer=False, predict_precision=True, feedforward_uncertainty=False, mean_field_updates=False)#
Methods
__init__(layers, volatility_updates, ...[, ...])get_layer_sizes()Per-element node count (one entry per
Layer/LayerStack).weights_tuple()Per-element
weights_meantuple, matched 1:1 toself.layers.Attributes
feedforward_uncertaintymean_field_updatesn_layersNumber of elements (
LayerorLayerStack) in the network.n_total_slicesTotal unrolled layer count, expanding every
LayerStack.paramsPer-layer
LayerParamstuple.precision_clipping_valuepredict_precisionupdate_input_layerweightsTuple of weight matrices (legacy view).
layersvolatility_updatesmax_posterior_precision