PyAutoFit icon indicating copy to clipboard operation
PyAutoFit copied to clipboard

Visualise models as graphs

Open rhayes777 opened this issue 2 years ago • 5 comments

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

rhayes777 avatar Jul 06 '23 13:07 rhayes777

I had set up some code for visualising FactorGraphs

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

matthewghgriffiths avatar Jul 06 '23 14:07 matthewghgriffiths

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: @.***>

rhayes777 avatar Jul 06 '23 14:07 rhayes777

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

matthewghgriffiths avatar Jul 06 '23 15:07 matthewghgriffiths

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: @.***>

rhayes777 avatar Jul 06 '23 15:07 rhayes777

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.

Jammy2211 avatar Feb 08 '24 12:02 Jammy2211