pyhgf.typing.vectorised.LayerParams#
- class pyhgf.typing.vectorised.LayerParams(tonic_volatility_vol=None, tonic_volatility=None, tonic_drift=None, autoconnection_strength=None)[source]#
Per-layer static parameters.
Each field is an array with one entry per node in the layer, or
Nonewhen the field does not apply to the layer’s kind: volatile layers carrytonic_volatility_vol(plustonic_volatilitywhen the value level’s own tonic volatility is enabled — seeDeepNetwork(tonic_volatility=True)), continuous layers carry the other three.- Parameters:
tonic_volatility_vol (jax.Array | None) – The tonic (baseline) volatility of the implied internal volatility level (volatile layers only).
tonic_volatility (jax.Array | None) – The tonic (baseline) log-volatility \(\omega\) of the node’s own Gaussian random walk. Continuous layers always carry it; volatile layers carry it only when enabled, and
Nonemeans the value level has no intrinsic volatility at all.tonic_drift (jax.Array | None) – The constant drift \(\rho\) added to the predicted mean at every time step (continuous layers only).
autoconnection_strength (jax.Array | None) – The AR(1) coefficient \(\lambda \in [0, 1]\) on the node’s own mean in the prediction;
1.0is a pure random walk (continuous layers only).
- __init__(tonic_volatility_vol=None, tonic_volatility=None, tonic_drift=None, autoconnection_strength=None)#
Methods
__init__([tonic_volatility_vol, ...])create(n_nodes[, tonic_volatility_vol, ...])Initialise volatile-layer params with defaults.
create_continuous(n_nodes[, ...])Initialise continuous-layer params with the nodalised defaults.
Attributes
autoconnection_strengthtonic_drifttonic_volatilitytonic_volatility_vol