pyhgf.updates.prediction_error.inputs.continuous.continuous_input_prediction_error#
- pyhgf.updates.prediction_error.inputs.continuous.continuous_input_prediction_error(attributes: Dict, time_step: float, node_idx: int, edges: Tuple[AdjacencyLists, ...], value: float, observed: bool) Dict [source]#
Store prediction errors in an input node.
- Parameters:
- attributes
The attributes of the probabilistic nodes.
- .. note::
The parameter structure also incorporates the value and volatility coupling strength with children and parents (i.e. “value_coupling_parents”, “value_coupling_children”, “volatility_coupling_parents”, “volatility_coupling_children”).
- time_step
The interval between the previous time point and the current time point.
- node_idx
Pointer to the input node.
- edges
The edges of the probabilistic nodes as a tuple of
pyhgf.typing.Indexes
. The tuple has the same length as the node number. For each node, the index lists the value and volatility parents and children.- value
The new observed value.
- observed
Whether value was observed or not.
- Returns:
- attributes
The updated attributes of the probabilistic nodes.
References
[1]Weber, L. A., Waade, P. T., Legrand, N., Møller, A. H., Stephan, K. E., & Mathys, C. (2023). The generalized Hierarchical Gaussian Filter (Version 1). arXiv. https://doi.org/10.48550/ARXIV.2305.10937