change sample to param statements in guides
"from pyro.distributions import constraints\n",
"\n",
"def good_guide():\n",
- " scale = pyro.sample(\"scale\", torch.tensor(0.05), \n",
+ " scale = pyro.param(\"scale\", torch.tensor(0.05), \n",
" constraint=constraints.positive)\n",
" pyro.sample(\"x\", dist.Normal(0.0, scale))\n",
"``` \n",
"while the following high-variance guide is very likely to lead to problems:\n",
"```python\n",
"def bad_guide():\n",
- " scale = pyro.sample(\"scale\", torch.tensor(12345.6), \n",
+ " scale = pyro.param(\"scale\", torch.tensor(12345.6), \n",
" constraint=constraints.positive)\n",
" pyro.sample(\"x\", dist.Normal(0.0, scale))\n",
"``` \n",
