causalgraphicalmodels
causalgraphicalmodels copied to clipboard
Causal Graphical Models in Python
Hi, I have been getting the following import error while importing the package. ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
from causalgraphicalmodels import CausalGraphicalModel M1Dag = CausalGraphicalModel( nodes=["A", "B", "C", "U", "X", "Y", "V"], edges=[ ("A", "C"), ("A", "U"), ("U", "B"), ("C", "B"), ("C", "Y"), ("U", "X"), ("X", "Y"), ("V",...
This fixes #5 @ijmbarr
When using Python version 3.9 and later, `from causalgraphicalmodels import CausalGraphicalModel` results in `ImportError: cannot import name 'Iterable' from 'collections'` The following fix is described [here](https://github.com/Azure/azure-cli/issues/20444): ``` try: # Python...
Minimal examples ```python dag = CausalGraphicalModel( nodes=["E", "U", "W"], edges=[("E", "W"), ("U", "W")], ) dag.get_all_backdoor_adjustment_sets("E", "W") # expected: {frozenset()} # actual: {frozenset(), frozenset({'U'})} ``` I double checked this in R...
Hi, I was just trying to play a little with causal graphical models so I started with the provided example. I ran: sprinkler = CausalGraphicalModel( nodes=["season", "rain", "sprinkler", "wet", "slippery"],...
Hi there, Thanks a lot for your work on this package -- this looks really useful and promising 👌 I was wondering if there is a way to find instrumental...