Skip to content

Commit 488fd12

Browse files
Merge pull request CamDavidsonPilon#420 from sorig/bugfix
Ch2 TFP bug fix: use function argument rather than global variable
2 parents 4f5c275 + 187e2f5 commit 488fd12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter2_MorePyMC/Ch2_MorePyMC_TFP.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@
12381238
" \n",
12391239
" return (\n",
12401240
" rv_prob_A.log_prob(prob_A)\n",
1241-
" + tf.reduce_sum(rv_occurrences.log_prob(occurrences_))\n",
1241+
" + tf.reduce_sum(rv_occurrences.log_prob(occurrences))\n",
12421242
" )"
12431243
]
12441244
},

0 commit comments

Comments
 (0)