Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Nov 17, 2023
1 parent 7dac13a commit 3619cfd
Show file tree
Hide file tree
Showing 21 changed files with 417 additions and 97 deletions.
34 changes: 27 additions & 7 deletions docs/source/notebooks/0-Creating_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,49 @@
{
"cell_type": "markdown",
"id": "e368e07c-2dbb-47df-bf93-f2b8ec3a7e5b",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/0-Creating_networks.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "81a63672",
"execution_count": null,
"id": "93c52124-b1b7-4688-bac6-3886c86b9352",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
}
},
"tags": []
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf\n",
"\n",
" !pip install pyhgf"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "81a63672",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import seaborn as sns\n",
Expand Down
10 changes: 8 additions & 2 deletions docs/source/notebooks/0-Creating_networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kernelspec:
(probabilistic_networks)=
# Creating and manipulating networks of probabilistic nodes

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

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/0-Creating_networks.ipynb)

Expand All @@ -29,10 +29,16 @@ slideshow:
---
%%capture
import sys
if 'google.colab' in sys.modules:
!pip install pyhgf
```

```{code-cell} ipython3
---
editable: true
slideshow:
slide_type: ''
---
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
Expand Down
8 changes: 7 additions & 1 deletion docs/source/notebooks/0-Theory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{
"cell_type": "markdown",
"id": "c2dcb78a-a246-4537-82f0-82ea35010cda",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"(theory)=\n",
"# Introduction to the Hierarchical Gaussian Filter\n",
Expand Down
2 changes: 2 additions & 0 deletions docs/source/notebooks/0-Theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ kernelspec:
name: python3
---

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

(theory)=
# Introduction to the Hierarchical Gaussian Filter

Expand Down
29 changes: 23 additions & 6 deletions docs/source/notebooks/1.1-Binary_HGF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,40 @@
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/1.1-Binary_HGF.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d805e368-99d3-41b2-a6d9-59a5d7876e82",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "927d8f75-a606-4af9-a68b-a182df2ed970",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf\n",
"\n",
"import arviz as az\n",
"import jax.numpy as jnp\n",
"import matplotlib.pyplot as plt\n",
Expand Down
16 changes: 13 additions & 3 deletions docs/source/notebooks/1.1-Binary_HGF.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,24 @@ kernelspec:
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/1.1-Binary_HGF.ipynb)

```{code-cell} ipython3
:tags: [hide-cell]
---
editable: true
slideshow:
slide_type: ''
---
%%capture
import sys
if 'google.colab' in sys.modules:
!pip install pyhgf
```

```{code-cell} ipython3
---
editable: true
slideshow:
slide_type: ''
tags: [hide-cell]
---
import arviz as az
import jax.numpy as jnp
import matplotlib.pyplot as plt
Expand Down
29 changes: 23 additions & 6 deletions docs/source/notebooks/1.2-Categorical_HGF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,40 @@
"```"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e9143ab5-131e-4a1c-9130-326c3538f888",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "d2c1e257-91ab-455d-a3ea-0ac0136797ed",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf\n",
"\n",
"import arviz as az\n",
"import jax.numpy as jnp\n",
"import matplotlib.pyplot as plt\n",
Expand Down
33 changes: 26 additions & 7 deletions docs/source/notebooks/1.3-Continuous_HGF.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,36 @@
{
"cell_type": "markdown",
"id": "fb99e4b3-b5f6-4393-b6f0-f867d61b1223",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/1.2-Continuous_HGF.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "08c9af0d-6dc1-46ce-a41e-ec694b6f5940",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -38,12 +63,6 @@
},
"outputs": [],
"source": [
"%%capture\n",
"import sys\n",
"\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf\n",
"\n",
"import arviz as az\n",
"import jax.numpy as jnp\n",
"import matplotlib.pyplot as plt\n",
Expand Down
12 changes: 9 additions & 3 deletions docs/source/notebooks/1.3-Continuous_HGF.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kernelspec:
(continuous_hgf)=
# The continuous Hierarchical Gaussian Filter

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

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/1.2-Continuous_HGF.ipynb)

Expand All @@ -26,14 +26,20 @@ kernelspec:
editable: true
slideshow:
slide_type: ''
tags: [hide-cell]
---
%%capture
import sys
if 'google.colab' in sys.modules:
!pip install pyhgf
```

```{code-cell} ipython3
---
editable: true
slideshow:
slide_type: ''
tags: [hide-cell]
---
import arviz as az
import jax.numpy as jnp
import matplotlib.pyplot as plt
Expand Down
39 changes: 32 additions & 7 deletions docs/source/notebooks/2-Using_custom_response_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{
"cell_type": "markdown",
"id": "3aebaca2-f14e-4b6f-9d68-8ff7ea3c7b71",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"(custom_response_functions)=\n",
"# Using custom response models"
Expand All @@ -12,15 +18,21 @@
{
"cell_type": "markdown",
"id": "1a9a9835-a027-4c14-9649-e7b51545b83d",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ilabcode/pyhgf/blob/master/docs/source/notebooks/2-Using_custom_response_functions.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "96efb544-a8f7-44af-8345-ab6af53aaaf5",
"execution_count": null,
"id": "6522fb9d-5799-4fe4-848e-a711bd3c2e15",
"metadata": {
"editable": true,
"slideshow": {
Expand All @@ -32,10 +44,23 @@
"source": [
"%%capture\n",
"import sys\n",
"\n",
"if 'google.colab' in sys.modules:\n",
" !pip install pyhgf\n",
"\n",
" !pip install pyhgf"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "96efb544-a8f7-44af-8345-ab6af53aaaf5",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"import arviz as az\n",
"import jax.numpy as jnp\n",
"import matplotlib.pyplot as plt\n",
Expand Down
Loading

0 comments on commit 3619cfd

Please sign in to comment.