Hi,
Consider the following code (Pyro 0.3):
isCorrect1 = pyro.sample("isCorrect1", dist.Bernoulli(.3), obs=torch.tensor(1.))
print(isCorrect1)
print(type(isCorrect1))
the output is
tensor(1.)
<class ‘torch.Tensor’>
/Users/erlebach/anaconda3/lib/python3.7/site-packages/pyro/primitives.py:71: RuntimeWarning: trying to observe a value outside of inference at isCorrect1
RuntimeWarning)
My question is “Why do I get this warning?”. The support of the Bernoulli distribution is 0 and 1 (not clear what type).
Thanks.
Gordon