From 168a19ff101cdbb8f445496dd6b173022f4a2265 Mon Sep 17 00:00:00 2001 From: Yerdos Ordabayev Date: Sun, 26 Jun 2022 09:33:01 -0400 Subject: [PATCH] fix enumeration tutorial typos --- tutorial/source/enumeration.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial/source/enumeration.ipynb b/tutorial/source/enumeration.ipynb index b7e7d8df12..e4f1dcc7fc 100644 --- a/tutorial/source/enumeration.ipynb +++ b/tutorial/source/enumeration.ipynb @@ -527,9 +527,9 @@ " plate_1 = pyro.plate(\"plate_1\", 10, dim=-1) # vectorized\n", " plate_2 = pyro.plate(\"plate_2\", 10, dim=-2) # vectorized\n", " with plate_1:\n", - " x = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", + " x = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", " with plate_2:\n", - " y = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", + " y = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", " with plate_1, plate2:\n", " z = pyro.sample(\"z\", dist.Bernoulli((1. + x + y) / 4.))\n", " ...\n", @@ -543,9 +543,9 @@ " plate_1 = pyro.plate(\"plate_1\", 10, dim=-1) # vectorized\n", " plate_2 = pyro.plate(\"plate_2\", 10) # sequential\n", " with plate_1:\n", - " x = pyro.sample(\"y\", dist.Bernoulli(0.5))\n", + " x = pyro.sample(\"x\", dist.Bernoulli(0.5))\n", " for i in plate_2:\n", - " y = pyro.sample(f\"x_{i}\", dist.Bernoulli(0.5))\n", + " y = pyro.sample(f\"y_{i}\", dist.Bernoulli(0.5))\n", " with plate_1:\n", " z = pyro.sample(f\"z_{i}\", dist.Bernoulli((1. + x + y) / 4.))\n", " ...\n",