Skip to content

Commit

Permalink
Merge pull request #194 from percevalve/move_to_v4
Browse files Browse the repository at this point in the history
Move to v4 for Rethinking 2
  • Loading branch information
aloctavodia authored Jun 3, 2022
2 parents 2996d38 + c35e28d commit 51c06ba
Show file tree
Hide file tree
Showing 6 changed files with 2,115 additions and 952 deletions.
387 changes: 327 additions & 60 deletions Rethinking_2/Chp_02.ipynb

Large diffs are not rendered by default.

326 changes: 265 additions & 61 deletions Rethinking_2/Chp_03.ipynb

Large diffs are not rendered by default.

1,931 changes: 1,210 additions & 721 deletions Rethinking_2/Chp_04.ipynb

Large diffs are not rendered by default.

191 changes: 154 additions & 37 deletions Rethinking_2/Chp_10.ipynb

Large diffs are not rendered by default.

95 changes: 67 additions & 28 deletions Rethinking_2/End_of_chapter_problems/Chapter_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,37 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:27.970339Z",
"iopub.status.busy": "2022-06-02T09:15:27.969925Z",
"iopub.status.idle": "2022-06-02T09:15:31.328838Z",
"shell.execute_reply": "2022-06-02T09:15:31.327731Z"
},
"lines_to_next_cell": 2
},
"outputs": [],
"source": [
"import arviz as az\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"\n",
"from matplotlib import pylab as plt"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:31.334355Z",
"iopub.status.busy": "2022-06-02T09:15:31.333692Z",
"iopub.status.idle": "2022-06-02T09:15:31.354934Z",
"shell.execute_reply": "2022-06-02T09:15:31.353888Z"
}
},
"outputs": [],
"source": [
"RANDOM_SEED = 8927\n",
Expand Down Expand Up @@ -60,16 +73,23 @@
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:31.359749Z",
"iopub.status.busy": "2022-06-02T09:15:31.359391Z",
"iopub.status.idle": "2022-06-02T09:15:31.368394Z",
"shell.execute_reply": "2022-06-02T09:15:31.367742Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"-0.6190392084062235"
]
},
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -112,16 +132,23 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:31.393901Z",
"iopub.status.busy": "2022-06-02T09:15:31.393172Z",
"iopub.status.idle": "2022-06-02T09:15:31.398898Z",
"shell.execute_reply": "2022-06-02T09:15:31.398032Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"0.9608342772032357"
]
},
"execution_count": 12,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -147,16 +174,23 @@
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:31.402492Z",
"iopub.status.busy": "2022-06-02T09:15:31.402206Z",
"iopub.status.idle": "2022-06-02T09:15:31.406686Z",
"shell.execute_reply": "2022-06-02T09:15:31.405853Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"5.4739473917272"
]
},
"execution_count": 6,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -194,28 +228,33 @@
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2022-06-02T09:15:31.410338Z",
"iopub.status.busy": "2022-06-02T09:15:31.410062Z",
"iopub.status.idle": "2022-06-02T09:15:31.419441Z",
"shell.execute_reply": "2022-06-02T09:15:31.418856Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Last updated: Tue Jan 04 2022\n",
"Last updated: Thu Jun 02 2022\n",
"\n",
"Python implementation: CPython\n",
"Python version : 3.8.6\n",
"IPython version : 7.20.0\n",
"Python version : 3.10.4\n",
"IPython version : 8.4.0\n",
"\n",
"numpy : 1.20.1\n",
"pymc3 : 3.11.0\n",
"sys : 3.8.6 | packaged by conda-forge | (default, Jan 25 2021, 23:22:12) \n",
"[Clang 11.0.1 ]\n",
"matplotlib: 3.3.4\n",
"pandas : 1.2.1\n",
"arviz : 0.11.1\n",
"pandas : 1.4.2\n",
"pymc : 4.0.0b5\n",
"numpy : 1.22.4\n",
"arviz : 0.12.1\n",
"matplotlib: 3.5.2\n",
"\n",
"Watermark: 2.1.0\n",
"Watermark: 2.3.1\n",
"\n"
]
}
Expand All @@ -233,7 +272,7 @@
"encoding": "# -*- coding: utf-8 -*-"
},
"kernelspec": {
"display_name": "pymc3",
"display_name": "pymc",
"language": "python",
"name": "python3"
},
Expand All @@ -247,7 +286,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
137 changes: 92 additions & 45 deletions Rethinking_2/End_of_chapter_problems/Chapter_2.ipynb

Large diffs are not rendered by default.

0 comments on commit 51c06ba

Please sign in to comment.