Skip to content

Commit

Permalink
Merge pull request #388 from jb--/master
Browse files Browse the repository at this point in the history
removed an uneccessary for loop
  • Loading branch information
CamDavidsonPilon committed Jun 1, 2018
2 parents 89f1883 + 2779244 commit 42e8c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter2_MorePyMC/Ch2_MorePyMC_PyMC3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
"figsize(12.5, 4)\n",
"\n",
"\n",
"samples = [lambda_1.random()[0] for i in range(20000)]\n",
"samples = lambda_1.random(size=20000)\n",
"plt.hist(samples, bins=70, normed=True, histtype=\"stepfilled\")\n",
"plt.title(\"Prior distribution for $\\lambda_1$\")\n",
"plt.xlim(0, 8);"
Expand Down

0 comments on commit 42e8c48

Please sign in to comment.