Skip to content

Commit 42e8c48

Browse files
Merge pull request #388 from jb--/master
removed an uneccessary for loop
2 parents 89f1883 + 2779244 commit 42e8c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter2_MorePyMC/Ch2_MorePyMC_PyMC3.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441
"figsize(12.5, 4)\n",
442442
"\n",
443443
"\n",
444-
"samples = [lambda_1.random()[0] for i in range(20000)]\n",
444+
"samples = lambda_1.random(size=20000)\n",
445445
"plt.hist(samples, bins=70, normed=True, histtype=\"stepfilled\")\n",
446446
"plt.title(\"Prior distribution for $\\lambda_1$\")\n",
447447
"plt.xlim(0, 8);"

0 commit comments

Comments
 (0)