You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data generated graphs in CausalNex using NOTEARS algorithm is a good place to start working on novel causal inference problems. However, as the problem at hand like in my field of Healthcare gets complicated and subjective, it is often necessary to modify the DAGs using the expertise of clinical experts and doctors. This requires moving the graph from a code-based tool like CausalNex or Networkx to a GUI based tool like DAGitty. A function to export the graph to a format that is DAGitty friendly would allow easier collaboration and moving of graphs between tools.
Context
This would facilitate better collaboration across engineers and clinical experts in my field. I am certain this would be a valuable asset to other fields where a data-generated graph is often first step towards developing a Bayesian Network.
Possible Implementation
A function that could be called on the Structured Graph class that output the graph in code format that is in a DAG format and could be copied and pasted in an email or chat and sent to the clinical collaborators. Also, a similar format that could be imported back into CausalNex.
The text was updated successfully, but these errors were encountered:
Thanks for raising this. Currently, providing an interoperability support for DAGitty is not part of our roadmap. However, assuming that DAGitty supports dot language (cf. this manual), we can easily export a StructureModel object into a .dot file using write_dot function from networkx. Below is a simple example of how this can be done:
importnetworkxasnxfromcausalnex.structureimportStructureModel# Create a modelsm=StructureModel()
sm.add_edges_from([
('A', 'C'),
('B', 'C')
])
# Save the model into pygraphviz's dot formatnx.drawing.nx_pydot.write_dot(sm, 'graph.dot')
Description
The data generated graphs in CausalNex using NOTEARS algorithm is a good place to start working on novel causal inference problems. However, as the problem at hand like in my field of Healthcare gets complicated and subjective, it is often necessary to modify the DAGs using the expertise of clinical experts and doctors. This requires moving the graph from a code-based tool like CausalNex or Networkx to a GUI based tool like DAGitty. A function to export the graph to a format that is DAGitty friendly would allow easier collaboration and moving of graphs between tools.
Context
This would facilitate better collaboration across engineers and clinical experts in my field. I am certain this would be a valuable asset to other fields where a data-generated graph is often first step towards developing a Bayesian Network.
Possible Implementation
A function that could be called on the Structured Graph class that output the graph in code format that is in a DAG format and could be copied and pasted in an email or chat and sent to the clinical collaborators. Also, a similar format that could be imported back into CausalNex.
The text was updated successfully, but these errors were encountered: