fix enumeration tutorial typos
" 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",
" 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",
