Skip to content

Commit 187e2f5

Browse files
committed
Bug fix: use function argument rather than global variable
1 parent 4f5c275 commit 187e2f5

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)