InferPy icon indicating copy to clipboard operation
InferPy copied to clipboard

Compute dependencies among Random Variables

Open jcozar87 opened this issue 7 years ago • 1 comments

Right now it is done using the TF default graph, where tensors of RVs are created.

In the future, it should be done in a more robust way. Any ideas about how to achieve this, without making more complex the syntax of InferPy?

jcozar87 avatar Feb 12 '19 15:02 jcozar87

One of the main problems doing like it is implemented right now, is that we have to reset the default graph each time a probmodel is built. This is because the names of the variables are checked to clean the graph of dependencies (obtained from the tensorflow graph), and we cannot simply remove the last _(\d)+ part of the name because users might want to name their variables like x = models.Normal(0, 1, name='x_1').

jcozar87 avatar Feb 12 '19 16:02 jcozar87