-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model_to_graphviz displays incomplete graph #3165
Comments
Seems like a problem with tracing the nodes through |
Funny! Should be able to take a look at it this week. Deterministics are hard to "see" when tracing the graph. In the mean time, the function does return a graphviz graph, so you can add the connections manually. I'll post that snippet when I start looking if it is easy. |
Well, it's not wrong about that link. |
Should be fixed by #3170. Reopen if not. |
Looking at it again I might be wrong. @ColCarroll? |
@JackCaster 's example is still a bug:
My example is a lot better than previously, but still draws extra lines. with pm.Model() as model:
w = pm.Normal('w')
x = pm.Deterministic('x', w)
y = pm.Deterministic('y', x)
u = pm.Deterministic('u', y)
z = pm.Normal('z', u)
pm.model_to_graphviz(model) |
model_to_graphviz
is awesome!However, I have an example in which the graph seems to be incomplete: see this notebook. There, I am modelling a beta distribution. Instead of modelling directly the parameters
alpha
andbeta
, I transform them to work with central tendency and precision.In the graph above I would expect the blocks for
alpha
andbeta
to be connected to the likelihood block.OS: Windows 10
PyMC3 version: updated to master
Other packages:
The text was updated successfully, but these errors were encountered: