rhayes777 / PyAutoFit

PyAutoFit: Classy Probabilistic Programming
https://pyautofit.readthedocs.io/
MIT License
59 stars 11 forks source link

Visualise models as graphs #754

Open rhayes777 opened 1 year ago

rhayes777 commented 1 year ago

Visualise model and prior relationships using a graph. Also visualise factor and variable relationships using a graph.

matthewghgriffiths commented 1 year ago

I had set up some code for visualising FactorGraphs

rhayes777 commented 1 year ago

Yeah I recall although wasn't it a bit fiddly to get a clear graph?

On Thu, 6 Jul 2023, 16:40 Matthew Griffiths, @.***> wrote:

I had set up some code for visualising FactorGraphs

- https://github.com/rhayes777/PyAutoFit/blob/ae791e2704cab52bad36d868033fd24512333e1d/autofit/graphical/factor_graphs/graph.py#L344-L485

— Reply to this email directly, view it on GitHub https://github.com/rhayes777/PyAutoFit/issues/754#issuecomment-1623802116, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQRGMRDANCFTXNK56AF32DXO3E4NANCNFSM6AAAAAA2APBH5I . You are receiving this because you authored the thread.Message ID: @.***>

matthewghgriffiths commented 1 year ago

Yeah, perhaps something like pyvis could be nice - https://towardsdatascience.com/pyvis-visualize-interactive-network-graphs-in-python-77e059791f01

rhayes777 commented 1 year ago

Yeah that looks nice

On Thu, 6 Jul 2023, 17:07 Matthew Griffiths, @.***> wrote:

Yeah, perhaps something like pyvis could be nice - https://towardsdatascience.com/pyvis-visualize-interactive-network-graphs-in-python-77e059791f01

— Reply to this email directly, view it on GitHub https://github.com/rhayes777/PyAutoFit/issues/754#issuecomment-1623849267, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQRGMT2WHG7762T3XRCXWDXO3IEFANCNFSM6AAAAAA2APBH5I . You are receiving this because you authored the thread.Message ID: @.***>

Jammy2211 commented 7 months ago

The first steps towards this are here: https://github.com/rhayes777/PyAutoFit/pull/923

I have put up a number of issues which aim to make model text output more concnise:

https://github.com/rhayes777/PyAutoFit/issues/925 https://github.com/rhayes777/PyAutoFit/issues/926 https://github.com/rhayes777/PyAutoFit/issues/930 https://github.com/rhayes777/PyAutoFit/issues/931

It goes without saying that the code makes model text output more concise, and which offers the right constructs for a visual graph, are likely one and the same, and all issues should be considered together.