Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation #126

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
362 changes: 192 additions & 170 deletions docs/source/notebooks/1.3-Continuous_HGF.ipynb

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions docs/source/notebooks/1.3-Continuous_HGF.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ kernelspec:
name: python3
---

+++ {"editable": true, "slideshow": {"slide_type": ""}}

(continuous_hgf)=
# The continuous Hierarchical Gaussian Filter

```{code-cell} ipython3
:tags: [hide-cell]

---
editable: true
slideshow:
slide_type: ''
tags: [hide-cell]
---
%%capture
import sys
if 'google.colab' in sys.modules:
Expand All @@ -32,6 +38,8 @@ from pyhgf.model import HGF
import seaborn as sns
```

+++ {"editable": true, "slideshow": {"slide_type": ""}}

In this notebook, we illustrate applications of the standard two-level and three-level Hierarchical Gaussian Filters (HGF) for continuous inputs. This class of models slightly differs from the previous binary example as input nodes here are not restricted to boolean variables but accept any observations on a continuous domain. Fitting continuous data allows using the HGF with any time series, which can find several applications in neuroscience (see for example the case study on physiological modelling using the Hierarchical Gaussian Filter {ref}`example_1`). The continuous HGF is built on to of the following probabilistic network:

```{figure} ../images/continuous.png
Expand Down Expand Up @@ -359,6 +367,11 @@ hgf_mcmc.surprise()
## System configuration

```{code-cell} ipython3
---
editable: true
slideshow:
slide_type: ''
---
%load_ext watermark
%watermark -n -u -v -iv -w -p pyhgf,jax,jaxlib
```
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ kernelspec:
name: python3
---

(example_1)=
+++ {"editable": true, "slideshow": {"slide_type": ""}}

(example_2)=
# Example 2: Estimating the mean and precision of an input node

```{code-cell} ipython3
Expand Down
Loading