Skip to content

Commit

Permalink
notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Dec 20, 2024
1 parent a34d867 commit dc7d2ac
Show file tree
Hide file tree
Showing 2 changed files with 470 additions and 190 deletions.
656 changes: 469 additions & 187 deletions docs/source/notebooks/0.3-Generalised_filtering.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions pyhgf/updates/prediction_error/exponential.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ def prediction_error_update_exponential_family_dynamic(
# retrieve the expected sufficient statistics from new observations
xis = sufficient_stats_fn(x=attributes[node_idx]["mean"])

for parent_idx, value in zip(
edges[node_idx].value_parents or [], xis or [], strict=True
):
for parent_idx, value in zip(edges[node_idx].value_parents or [], xis, strict=True):

# blank update in the case of unobserved value
attributes[parent_idx]["observed"] = attributes[node_idx]["observed"]
Expand Down

0 comments on commit dc7d2ac

Please sign in to comment.