Skip to content

Graphing Models #876

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

Closed
henripal opened this issue Nov 24, 2015 · 6 comments
Closed

Graphing Models #876

henripal opened this issue Nov 24, 2015 · 6 comments

Comments

@henripal
Copy link

The model graphing in PyMC is really useful! But PyDot/Graphviz doesn't play well with python 3 and produces graphs that are a little lackluster, and the graphing capability is absent from PyMC3.

I'm very much intermediate level but if someone else thought it was useful and someone was willing to help me out a little at the beginning, I'd be happy to try and contribute this feature to the project!

Some nice looking Neo4j based graphing options

@aloctavodia
Copy link
Member

I think it would be nice to have the graph rendered using the Kruschke-style-diagrams, here there are some templates that could be really useful.

@twiecki
Copy link
Member

twiecki commented Nov 24, 2015

@henripal Thanks for your interest, that would certainly be a valuable addition. The first to look into is how you could traverse the model graph as pymc3 does not have an explicit representation of parents and children.

@fonnesbeck
Copy link
Member

BTW, if you are having PyDot issues in Python 3, try installing PyDot 2.

pip install pydot2

@henripal
Copy link
Author

I like the Kruschke-style graphs, as well!

Let me take a look at the code and see if I can figure out a way of doing this.

(thanks for the pydot2 rec, too, I tried it and got it to work, albeit after a significant amount of tweaking)

@henripal
Copy link
Author

henripal commented Dec 2, 2015

Hey, so I looked hard at the code and follow the broad lines of the architecture, but find it to be rough going. I tried getting graphs from the Theano layer, to no avail, most likely for the reason @twiecki mentioned.

I'm still interested, but need to hone the OOP side of my Python skills (open to suggestions on how to best do this!) before being able to actually solve this. I'll be back when I get enough XP to get to the next level :)

Thanks everyone for your time!

@fonnesbeck
Copy link
Member

Closing. I encourage a PR for anyone interested in tackling DAG plotting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants