Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Chapter1_Introduction/Ch1_Introduction_PyMC3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"\n",
"# For the already prepared, I'm using Binomial's conj. prior.\n",
"for k, N in enumerate(n_trials):\n",
" sx = plt.subplot(len(n_trials)/2, 2, k+1)\n",
" sx = plt.subplot(len(n_trials)//2, 2, k+1)\n",
" plt.xlabel(\"$p$, probability of heads\") \\\n",
" if k in [0, len(n_trials)-1] else None\n",
" plt.setp(sx.get_yticklabels(), visible=False)\n",
Expand Down Expand Up @@ -650,7 +650,6 @@
],
"source": [
"import pymc3 as pm\n",
"import theano.tensor as tt\n",
"\n",
"with pm.Model() as model:\n",
" alpha = 1.0/count_data.mean() # Recall count_data is the\n",
Expand Down Expand Up @@ -730,7 +729,7 @@
"### Mysterious code to be explained in Chapter 3.\n",
"with model:\n",
" step = pm.Metropolis()\n",
" trace = pm.sample(10000, tune=5000,step=step)"
" trace = pm.sample(10000, tune=5000, step=step, return_inferencedata=False)"
]
},
{
Expand Down