InferPy
InferPy copied to clipboard
Compute dependencies among Random Variables
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?
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').