Skip to content

Commit 2184277

Browse files
committed
update admonition boxes
1 parent ae6357b commit 2184277

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

examples/generalized_linear_models/GLM-simpsons-paradox.ipynb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,9 +1380,7 @@
13801380
"cell_type": "markdown",
13811381
"metadata": {},
13821382
"source": [
1383-
":::{admonition} **Notes**\n",
1384-
":class: note\n",
1385-
"\n",
1383+
":::{note}\n",
13861384
"The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution.\n",
13871385
"\n",
13881386
"In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space.\n",
@@ -1742,9 +1740,7 @@
17421740
"cell_type": "markdown",
17431741
"metadata": {},
17441742
"source": [
1745-
":::{admonition} **Divergences**\n",
1746-
":class: note\n",
1747-
"\n",
1743+
":::{note}\n",
17481744
"Note that despite having a longer tune period and increased `target_accept`, this model can still generate a low number of divergent samples. If the reader is interested, you can explore the a \"reparameterisation trick\" is used by setting the flag `non_centered=True`. See the blog post [Why hierarchical models are awesome, tricky, and Bayesian](https://twiecki.io/blog/2017/02/08/bayesian-hierchical-non-centered/) by Thomas Wiecki for more information on this.\n",
17491745
":::"
17501746
]

examples/generalized_linear_models/GLM-simpsons-paradox.myst.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,7 @@ This model could also be called a partial pooling model.
443443

444444
+++
445445

446-
:::{admonition} **Notes**
447-
:class: note
448-
446+
:::{note}
449447
The hierarchical model we are considering contains a simplification in that the population level slope and intercept are assumed to be independent. It is possible to relax this assumption and model any correlation between these parameters by using a multivariate normal distribution.
450448

451449
In one sense this move from Model 2 to Model 3 can be seen as adding parameters, and therefore increasing model complexity. However, in another sense, adding this knowledge about the nested structure of the data actually provides a constraint over parameter space.
@@ -496,9 +494,7 @@ with hierarchical:
496494
idata = pm.sample(tune=4000, target_accept=0.99, random_seed=rng)
497495
```
498496

499-
:::{admonition} **Divergences**
500-
:class: note
501-
497+
:::{note}
502498
Note that despite having a longer tune period and increased `target_accept`, this model can still generate a low number of divergent samples. If the reader is interested, you can explore the a "reparameterisation trick" is used by setting the flag `non_centered=True`. See the blog post [Why hierarchical models are awesome, tricky, and Bayesian](https://twiecki.io/blog/2017/02/08/bayesian-hierchical-non-centered/) by Thomas Wiecki for more information on this.
503499
:::
504500

0 commit comments

Comments
 (0)