Skip to content

Commit 51c06ba

Browse files
authored
Merge pull request #194 from percevalve/move_to_v4
Move to v4 for Rethinking 2
2 parents 2996d38 + c35e28d commit 51c06ba

File tree

6 files changed

+2115
-952
lines changed

6 files changed

+2115
-952
lines changed

Rethinking_2/Chp_02.ipynb

+327-60
Large diffs are not rendered by default.

Rethinking_2/Chp_03.ipynb

+265-61
Large diffs are not rendered by default.

Rethinking_2/Chp_04.ipynb

+1,210-721
Large diffs are not rendered by default.

Rethinking_2/Chp_10.ipynb

+154-37
Large diffs are not rendered by default.

Rethinking_2/End_of_chapter_problems/Chapter_11.ipynb

+67-28
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,37 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 2,
5+
"execution_count": 1,
66
"metadata": {
7+
"execution": {
8+
"iopub.execute_input": "2022-06-02T09:15:27.970339Z",
9+
"iopub.status.busy": "2022-06-02T09:15:27.969925Z",
10+
"iopub.status.idle": "2022-06-02T09:15:31.328838Z",
11+
"shell.execute_reply": "2022-06-02T09:15:31.327731Z"
12+
},
713
"lines_to_next_cell": 2
814
},
915
"outputs": [],
1016
"source": [
1117
"import arviz as az\n",
1218
"import numpy as np\n",
1319
"import pandas as pd\n",
14-
"import pymc3 as pm\n",
20+
"import pymc as pm\n",
1521
"\n",
1622
"from matplotlib import pylab as plt"
1723
]
1824
},
1925
{
2026
"cell_type": "code",
21-
"execution_count": 3,
22-
"metadata": {},
27+
"execution_count": 2,
28+
"metadata": {
29+
"execution": {
30+
"iopub.execute_input": "2022-06-02T09:15:31.334355Z",
31+
"iopub.status.busy": "2022-06-02T09:15:31.333692Z",
32+
"iopub.status.idle": "2022-06-02T09:15:31.354934Z",
33+
"shell.execute_reply": "2022-06-02T09:15:31.353888Z"
34+
}
35+
},
2336
"outputs": [],
2437
"source": [
2538
"RANDOM_SEED = 8927\n",
@@ -60,16 +73,23 @@
6073
},
6174
{
6275
"cell_type": "code",
63-
"execution_count": 5,
64-
"metadata": {},
76+
"execution_count": 3,
77+
"metadata": {
78+
"execution": {
79+
"iopub.execute_input": "2022-06-02T09:15:31.359749Z",
80+
"iopub.status.busy": "2022-06-02T09:15:31.359391Z",
81+
"iopub.status.idle": "2022-06-02T09:15:31.368394Z",
82+
"shell.execute_reply": "2022-06-02T09:15:31.367742Z"
83+
}
84+
},
6585
"outputs": [
6686
{
6787
"data": {
6888
"text/plain": [
6989
"-0.6190392084062235"
7090
]
7191
},
72-
"execution_count": 5,
92+
"execution_count": 3,
7393
"metadata": {},
7494
"output_type": "execute_result"
7595
}
@@ -112,16 +132,23 @@
112132
},
113133
{
114134
"cell_type": "code",
115-
"execution_count": 12,
116-
"metadata": {},
135+
"execution_count": 4,
136+
"metadata": {
137+
"execution": {
138+
"iopub.execute_input": "2022-06-02T09:15:31.393901Z",
139+
"iopub.status.busy": "2022-06-02T09:15:31.393172Z",
140+
"iopub.status.idle": "2022-06-02T09:15:31.398898Z",
141+
"shell.execute_reply": "2022-06-02T09:15:31.398032Z"
142+
}
143+
},
117144
"outputs": [
118145
{
119146
"data": {
120147
"text/plain": [
121148
"0.9608342772032357"
122149
]
123150
},
124-
"execution_count": 12,
151+
"execution_count": 4,
125152
"metadata": {},
126153
"output_type": "execute_result"
127154
}
@@ -147,16 +174,23 @@
147174
},
148175
{
149176
"cell_type": "code",
150-
"execution_count": 6,
151-
"metadata": {},
177+
"execution_count": 5,
178+
"metadata": {
179+
"execution": {
180+
"iopub.execute_input": "2022-06-02T09:15:31.402492Z",
181+
"iopub.status.busy": "2022-06-02T09:15:31.402206Z",
182+
"iopub.status.idle": "2022-06-02T09:15:31.406686Z",
183+
"shell.execute_reply": "2022-06-02T09:15:31.405853Z"
184+
}
185+
},
152186
"outputs": [
153187
{
154188
"data": {
155189
"text/plain": [
156190
"5.4739473917272"
157191
]
158192
},
159-
"execution_count": 6,
193+
"execution_count": 5,
160194
"metadata": {},
161195
"output_type": "execute_result"
162196
}
@@ -194,28 +228,33 @@
194228
},
195229
{
196230
"cell_type": "code",
197-
"execution_count": 14,
198-
"metadata": {},
231+
"execution_count": 6,
232+
"metadata": {
233+
"execution": {
234+
"iopub.execute_input": "2022-06-02T09:15:31.410338Z",
235+
"iopub.status.busy": "2022-06-02T09:15:31.410062Z",
236+
"iopub.status.idle": "2022-06-02T09:15:31.419441Z",
237+
"shell.execute_reply": "2022-06-02T09:15:31.418856Z"
238+
}
239+
},
199240
"outputs": [
200241
{
201242
"name": "stdout",
202243
"output_type": "stream",
203244
"text": [
204-
"Last updated: Tue Jan 04 2022\n",
245+
"Last updated: Thu Jun 02 2022\n",
205246
"\n",
206247
"Python implementation: CPython\n",
207-
"Python version : 3.8.6\n",
208-
"IPython version : 7.20.0\n",
248+
"Python version : 3.10.4\n",
249+
"IPython version : 8.4.0\n",
209250
"\n",
210-
"numpy : 1.20.1\n",
211-
"pymc3 : 3.11.0\n",
212-
"sys : 3.8.6 | packaged by conda-forge | (default, Jan 25 2021, 23:22:12) \n",
213-
"[Clang 11.0.1 ]\n",
214-
"matplotlib: 3.3.4\n",
215-
"pandas : 1.2.1\n",
216-
"arviz : 0.11.1\n",
251+
"pandas : 1.4.2\n",
252+
"pymc : 4.0.0b5\n",
253+
"numpy : 1.22.4\n",
254+
"arviz : 0.12.1\n",
255+
"matplotlib: 3.5.2\n",
217256
"\n",
218-
"Watermark: 2.1.0\n",
257+
"Watermark: 2.3.1\n",
219258
"\n"
220259
]
221260
}
@@ -233,7 +272,7 @@
233272
"encoding": "# -*- coding: utf-8 -*-"
234273
},
235274
"kernelspec": {
236-
"display_name": "pymc3",
275+
"display_name": "pymc",
237276
"language": "python",
238277
"name": "python3"
239278
},
@@ -247,7 +286,7 @@
247286
"name": "python",
248287
"nbconvert_exporter": "python",
249288
"pygments_lexer": "ipython3",
250-
"version": "3.8.6"
289+
"version": "3.10.4"
251290
}
252291
},
253292
"nbformat": 4,

Rethinking_2/End_of_chapter_problems/Chapter_2.ipynb

+92-45
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)