Skip to content

Commit 03c11a8

Browse files
authored
update TFP code (#220)
* update TFP code * add note
1 parent 25934f9 commit 03c11a8

21 files changed

+7712
-1593
lines changed

notebooks_updated/chp_01.ipynb

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,9 @@
77
"# Code 1: Bayesian Inference"
88
]
99
},
10-
{
11-
"cell_type": "markdown",
12-
"metadata": {},
13-
"source": [
14-
"```{admonition} This is a reference notebook for the book Bayesian Modeling and Computation in Python\n",
15-
":class: tip, dropdown\n",
16-
"The textbook is not needed to use or run this code, though the context and explanation is missing from this notebook.\n",
17-
"\n",
18-
"If you'd like a copy it's available\n",
19-
"[from the CRC Press](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368)\n",
20-
"or from [Amazon](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368).\n",
21-
"``"
22-
]
23-
},
2410
{
2511
"cell_type": "code",
26-
"execution_count": 1,
12+
"execution_count": null,
2713
"metadata": {},
2814
"outputs": [],
2915
"source": [

notebooks_updated/chp_01.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ jupyter:
1515

1616
# Code 1: Bayesian Inference
1717

18-
19-
```{admonition} This is a reference notebook for the book Bayesian Modeling and Computation in Python
20-
:class: tip, dropdown
21-
The textbook is not needed to use or run this code, though the context and explanation is missing from this notebook.
22-
23-
If you'd like a copy it's available
24-
[from the CRC Press](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368)
25-
or from [Amazon](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368).
26-
``
27-
2818
```python
2919
%matplotlib inline
3020
import arviz as az

notebooks_updated/chp_02.ipynb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@
1010
{
1111
"cell_type": "markdown",
1212
"metadata": {},
13-
"source": [
14-
"```{admonition} This is a reference notebook for the book Bayesian Modeling and Computation in Python\n",
15-
":class: tip, dropdown\n",
16-
"The textbook is not needed to use or run this code, though the context and explanation is missing from this notebook.\n",
17-
"\n",
18-
"If you'd like a copy it's available\n",
19-
"[from the CRC Press](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368)\n",
20-
"or from [Amazon](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368).\n",
21-
"``"
22-
]
23-
},
24-
{
25-
"cell_type": "code",
26-
"execution_count": 1,
27-
"metadata": {},
28-
"outputs": [],
2913
"source": [
3014
"%matplotlib inline\n",
3115
"import arviz as az\n",

notebooks_updated/chp_02.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,12 @@ jupyter:
1616
# Code 2: Exploratory Analysis of Bayesian Models
1717

1818

19-
```{admonition} This is a reference notebook for the book Bayesian Modeling and Computation in Python
20-
:class: tip, dropdown
21-
The textbook is not needed to use or run this code, though the context and explanation is missing from this notebook.
22-
23-
If you'd like a copy it's available
24-
[from the CRC Press](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368)
25-
or from [Amazon](https://www.routledge.com/Bayesian-Modeling-and-Computation-in-Python/Martin-Kumar-Lao/p/book/9780367894368).
26-
``
27-
28-
```python
2919
%matplotlib inline
3020
import arviz as az
3121
import matplotlib.pyplot as plt
3222
import numpy as np
3323
import pymc as pm
3424
from scipy import stats
35-
```
3625

3726
```python
3827
az.style.use("arviz-grayscale")

notebooks_updated/chp_03.ipynb

Lines changed: 533 additions & 309 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)