Open emad2 opened 8 years ago
I cannot reproduce this. I get the following:
In [3]: x[0].children
Out[3]:
{<pymc.distributions.new_dist_class.<locals>.new_class 'x_1' at 0x1045db0f0>,
<pymc.PyMCObjects.Stochastic 'y' at 0x118cc3518>}
which is expected.
I narrowed down the problem to Spyder (the IDE that comes with Anaconda). When I run the code in ipython console of spyder, I get the behavior. When I run it in python environment directly from terminal, everything is fine.
I have a Bayesian network and to model it I am using containers. I have been trying to make sure that the parents/children connections are correct before I proceed, and I noticed that when using containers, pymc generates many deterministic variables that I have not defined myself. To see this, you can run the example in tutorial:
and then type
x[0].children
I see children of the formwhich I cannot justify. Is this normal? Would I get the same results if I fit a model but don't use containers?