Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c4f35d6

Browse files
Merge pull request #449 from jpz/master
Fix small typo in initialisation of exp_y_
2 parents be1faee + e2fbbda commit c4f35d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Chapter3_MCMC/Ch3_IntroMCMC_TFP.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
"source": [
384384
"exp_x_ = evaluate(tfd.Exponential(rate=(1./3.)).prob(x_))\n",
385385
"exp_x_[np.isnan(exp_x_)] = exp_x_[1]\n",
386-
"exp_y_ = evaluate(tfd.Exponential(rate=(1./10.)).prob(x_))\n",
386+
"exp_y_ = evaluate(tfd.Exponential(rate=(1./10.)).prob(y_))\n",
387387
"exp_y_[np.isnan(exp_y_)] = exp_y_[1]\n",
388388
"M_ = evaluate(tf.matmul(tf.expand_dims(exp_x_, 1), tf.expand_dims(exp_y_, 0)))\n",
389389
"\n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /