In the tutorial, we are trying to infer weight distribution given guess and measurement.
And the code is below.
def scale_obs(guess): # equivalent to conditioned_scale above weight = pyro.sample("weight", dist.Normal(guess, 1.)) # here we condition on measurement == 9.5 return pyro.sample("measurement", dist.Normal(weight, 1.), obs=9.5)
Here I don’t understand why you put observation when you are sampling measurement.
As far as I know the fact that measurement is 9.5 should be reflected when we sample weight, but it is sampled before the reflection.
So I’m confused understanding the code. Could someone help me understand it?