Adding functionality to save the Intervention Graph generated during a tracing context. This is particularly useful for debugging and acquiring a better understanding of how the intervention graph is formed.
To save the graph locally, you can now add a visualize argument to model.trace(...) by passing it a dictionary with the following kwargs:
"""
filename (str): Name of the Intervention Graph. Defaults to "graph".
format (str): Image format of the graphic. Defaults to "png".
directory (Optional[str]): Directory path to save the graphic in. If None saves content to the current directory.
"""
Here is a coding example for how to use the feature:
Adding functionality to save the Intervention Graph generated during a tracing context. This is particularly useful for debugging and acquiring a better understanding of how the intervention graph is formed.
To save the graph locally, you can now add a
visualize
argument tomodel.trace(...)
by passing it a dictionary with the following kwargs:Here is a coding example for how to use the feature:
with the following result being saved: